Questions tagged as 'laravel-5'

0
answers

How to handle POST request in laravel that were sent as parameters?

Define a route this way in the API: $this->router->post('/logo', 'MinhaContaLogoController@adicionarLogo') However my client request sends a parameter in the URL in method POST: /logo?fileapi154288602223716 Since this route does...
asked by 22.11.2018 / 12:49
0
answers

Listing in laravel

Hello, I have following modeling: Atableworkoutsthathasseveralmodelsoftraining(models_treinos).Thetreadmillmodelhasseveralexercises.Inlaravel,Ineedtolistacertainworkout(id1,forexample),allthemodelsofthatworkoutandalltheexercisesofthatmodel.Inth...
asked by 20.11.2018 / 18:26
1
answer

Validate CPF in Laravel's RegisterController class

I downloaded the link package to perform cpf validation on my system. I followed the documentation instructions by putting the ValidatorProvider in app.php. In my system of registration, I would like only valid CPFs to be saved. However, I...
asked by 16.11.2018 / 16:22
0
answers

Compare a date and insert in the parameters array?

Controller if ($data_inicial != "") { $parametros = array_merge($parametros, array(('data_cheque' ,'>=', $data_inicial)); //print_r($parametros); } if ($data_final != "") { $parametros = array_merge($parametros, array(('d...
asked by 18.10.2018 / 16:03
0
answers

Function when starting a session and when a session expires Laravel 5.6

Hello, I am creating a system in laravel and I want to make a function to display the user online, I have already created the onLogin and onLogout functions, but if the session expires it stays online. I would like to know if I lease knows where...
asked by 22.10.2018 / 14:53
1
answer

Error installing laravel 5.6 with Docker

I'm trying to set the laravel 5.6 in Docker image, but when executing the command: docker run -it --rm \ -v $(pwd):/app {user_dockerHub}/docker-laravel \ composer create-project laravel/laravel app I'm getting the follo...
asked by 20.09.2018 / 16:07
0
answers

Uploading the file inside the ajax request

I am trying to capture data via ajax request, for file upload and is not returning value for the photo. Can anyone help me? Ajax: Outputtothedataconsole(thephotopathisselected!): PersonControl:publicfunctionpostStatePath(Request$request){...
asked by 13.09.2018 / 20:48
1
answer

Change apache in Cpanel

I made an application in laravel 5 and need to upload to a server that is not mine, I only have an FTP account for it. The problem is that p server CPanel is configured for PHP 5 and laravel runs on PHP 7. The hosting mentioned above is with Eas...
asked by 04.09.2018 / 13:51
0
answers

Pusher Error - Uncaught ReferenceError: Pusher is not defined

Good morning. I followed this tutorial: link But I get the following error in the browser console: Uncaught ReferenceError: Pusher is not defined at PusherConnector.connect (VM562 app.js:36739) at PusherConnector.Connector (VM562 app.j...
asked by 03.09.2018 / 15:19
0
answers

local.ERROR: SQLSTATE [23000]: Integrity constraint violation: 1452

Expensive, Please help me with this error: local.ERROR: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails ('clima'.'tbl_consenso', CONSTRAINT 'tbl_consenso_opcao_id_foreig...
asked by 03.09.2018 / 14:01