Questions tagged as 'laravel'

1
answer

I can not save all the foreach log - LARAVEL

In user id it has 2 record only that at save time it only saves 1 record and not 2, how should I do to save correctly? Follow Code below Controller Lists user data public function listardados(){ $matricula = Matricula::where('user_id...
asked by 22.11.2018 / 19:47
1
answer

How to change the name of the button if the user has registered - LARAVEL?

Good evening, I would like to put a warning type on the button if the user has made such a registration in my case has made a renewal, user enters the card and note that already made the subscription the name of the button changes and is written...
asked by 30.11.2018 / 03:23
1
answer

Eloquent returning field and value

My select is returning the field and the value of the id that is in the table and I need to return only the value, how do I do it? $id = DB::table('participantes') ->select('id') ->orderBy('id','DESC') ->take(1...
asked by 25.10.2018 / 20:31
1
answer

Write data in API RestFul Laravel through JSON

I'm trying to write data to a Restful API in Laravel via a JSON, but I can not write more than one group of information when the file has more than one. "data": [ { "client_id": "3", "veiculo_id": "3", "carreta1_id": "3", "carre...
asked by 03.10.2018 / 02:07
1
answer

Ajax (POST) Laravel

I am having the famous error 419, which for a certain moment I managed to solve, but after restarting the server, it stopped working. Route: Route::post('ajax/Register', 'Ajax@Register'); Controller: public static function Register() {...
asked by 02.10.2018 / 22:56
1
answer

Error installing Laravel via composer (Mcrypt required) [duplicate]

While trying to install Laravel via composer, he told me he needs the extension Mcrypt. I'm using linux ubuntu OS 13.04 Server Zend Server CE 6.3 apache 2.2; php5.4; But nothing of the damn thing works.     
asked by 05.03.2014 / 00:38
1
answer

Error when I type php artisan migrate command in windows terminal

Error: After typing the command php artisan migrate in Windows :    Microsoft Windows [version 6.2.9200] (c) 2012 Microsoft Corporation.   All rights reserved.       C: \ Users \ x538238> cd C: \ xampp \ htdocs \ laravel       C:...
asked by 25.07.2018 / 13:16
1
answer

Laravel jwt token

I'm using tymondesigns / jwt-auth to generate token It's working The problem is that I want to change the validity time of the token to 1 minute for testing I changed the jwt.php file: 'ttl' = > env ('JWT_TTL', 1), and I also tried: 'ttl'...
asked by 15.11.2018 / 15:20
2
answers

How to create a progress bar in PHP using the Laravel Framework?

Kindly, someone can help me. I need to create a progress bar for a PHP application using the Laravel framework. Example: When loading (displaying the DB list) a table with three thousand records displaying the status in a progress bar.     
asked by 09.07.2018 / 15:03
1
answer

Problems with the php artisan command using Laradock

Whenever I use Laravel's artisan command in my laradock workspace to create a controller, model or any other file I can not save or delete this generated file, the system (Linux Mint) asks me to place my user password. I have tried to change the...
asked by 18.08.2018 / 16:29