Questions tagged as 'laravel'

0
answers

How to use Scheduler in laravel

I'm following the laravel documentation to create a Scheduler, but I'm trying hard. Could someone give a light? In this command: php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1 I understand that path-to-y...
asked by 13.12.2017 / 02:29
0
answers

Find bigger field in a table with Eloquent

I'm using Laravel for an API In my DB I have a table called tbmanifestacao and in this table I have a column called nrmanifestacao I would like my controller to return the highest nrmanifestacao I tried this way:...
asked by 12.12.2017 / 20:43
0
answers

redirect () - back () return with variable

I have this form here <form action="{{ route('usuario.update') }}" method="post"> <input id="token" type="hidden" value="{{ csrf_token() }}" name="_token"/> <input type="hidden" value="{{ $usuario }}" name="user">...
asked by 03.12.2017 / 20:57
0
answers

Error giving the Migrate command from laravel to postgres

Expensive, good afternoon. I am not getting the migrate command in laravel for postgres. I changed the settings, I enabled the driver, but nothing works. Any ideas? database.php: 'default' => env('DB_CONNECTION', 'pgsql'), PhpInfo () E...
asked by 12.12.2017 / 19:10
2
answers

Project Laravel works in mysql but the error in the migration when using postgres

I have a project that I started in mysql, I created some migration and I put relationships inside them, whenever I needed to make changes, delete the database and run the migrate again, with mysql always worked. I need to change the database f...
asked by 17.11.2017 / 20:37
0
answers

Error in creating project Lumen: Application ready! Build something amazing

I did the installation following the documentation, but when running lumen new it simply returns the message: Application ready! Build something amazing., creates the folders but does not generate all necessary files. What can it be? detai...
asked by 06.11.2017 / 23:16
0
answers

Error trying to log in with the updated profile photo

I made a user photo exchange system, when I change the photo, I want to unlock it and try to login again, it returns me with this error: thisismyline11: <img src="images/uploads/avatars/{{ $user->avatar }}" alt="" class="circle respo...
asked by 08.11.2017 / 18:44
0
answers

Many-to-Many Relationship Road

I have a related question API REST, if anyone can help, thank you. I have 2 entities, Product and Store, which have a many-to-many relationship between them. A Product may be available in 1 or more Stores and, in turn, a Store may have 1 or m...
asked by 29.11.2017 / 13:19
0
answers

Problem with languages in laravel

I have a laravel language system, I'm using their localization system. I have the system working, what happens and when I go back to the domain.com of the error I wanted it to be shown by default a language to define by me is possible? Route...
asked by 26.10.2017 / 01:50
1
answer

Saving multiple images

I'm not able to save multiple images in my seat, my code below to follow the highlighted line with the arrow ( - > ). Note: when it was just a normal saved image. public function store(Request $request) { $this->validate($reques...
asked by 27.10.2017 / 17:42