Questions tagged as 'laravel-5.4'

1
answer

Laravel 5.4 has no Middleware / Authenticate.php

I'm following an example on jwt and Laravel 5 and I'm needing the Middleware / Authenticate.php file, but in my project there is no file (Laravel version is 5.4.36), I tried the php command artisan make: auth but it did not generate the file....
asked by 13.01.2018 / 15:49
1
answer

Many relationship to many laravel

Well, I've tried to read the documentation and develop this relationship, but I can not really tell you what the user's name is. The database model looks like this: % of% involved App\User App\TipoUser App\UserTipo And in my model i...
asked by 04.05.2017 / 01:45
0
answers

Error in Laravel that does not find a routine that exists

You are giving the error below on my system in Laravel 5.4. What could be causing this error? I have already reviewed and already rode the command: php artisan clear-compiled Followspartsofthecodeandtheirclasses.prefeitura.blade.ph...
asked by 30.01.2018 / 02:57
1
answer

how to pass many variables from the controller to the view in laravel

I want to pass these variables, but it seems that quantity prevents me, is there another way? return view('pontuacao')->with('somas', $somas[0]->p)->with('somas1', $somas1[0]->s)->with('palpites', $palpites)->with('co...
asked by 29.10.2017 / 20:37
1
answer

Swift_TransportException error while sending e-amil using SMTP + Laravel 5.4

Speak Person, one more trouble, is as follows: I'm trying to send an email through my application (api), where I develop with Laravel 5.4. The thing seems very easy, just not! My .env file looks like this: MAIL_DRIVER=smtp MAIL_HOST=mail...
asked by 14.09.2017 / 04:54
0
answers

Error executing make command with repository plugin

When I run the command php artisan make:entity User it returns the error [ReflectionException] Method Prettus\Repository\Generators\Commands\EntityCommand::handle() does not exist I did the installation as it says in the documentatio...
asked by 03.09.2017 / 03:22
0
answers

Executing dll via php and laravel

I have a project in php with laravel and I need to use some functions contained in a dll, I tried to use the native COM (Component Object Model) class of PHP, but the laravel as class not found, how can I use this class that is native to php in...
asked by 25.07.2017 / 18:52
1
answer

Problems with caching in Laravel 5.4

Hello, I'm experiencing problems with caching in Laravel 5.4. When I give an UPDATE on a form, I direct the user to the listing of records. When I return to the edit form of the same, the old data (before making the change) still appear. Only...
asked by 19.07.2017 / 05:22
2
answers

Validate Single Field Laravel

Talk to people, I'm trying to learn Laravel and I'm currently caught up in something apparently simple, it's the following. I created a very simple system with login and other things, and I'm trying to implement editing the data of the logged...
asked by 29.04.2017 / 01:29
1
answer

How to create Scope in Laravel 5.4 with tables linked through belongsToMany

The structure of the table is this: pessoa id - integer nome - string unidade id - integer nome - string pessoa_unidade pessoa_id - integer unidade_id - integer I have the templates: class Pessoa extends Model { pu...
asked by 06.05.2017 / 12:49