Questions tagged as 'laravel'

1
answer

Laravel 5.5 - Validate method does not exist?

I'm having trouble performing a validation of data in 5.5 , can you tell me where I'm wrong? Error:    Here is the code for Controller <?php namespace App\Http\Controllers\PainelAdmin; use Illuminate\Http\Requ...
asked by 12.10.2017 / 23:02
1
answer

How to pass data from two unrelated tables in a view?

I'm trying to pass to a view, data coming from two unrelated tables. Only the data of one appears, the other is invisible, but you can see the change in the layout when this data is loaded. Another fact that I found curious, is that it is not gi...
asked by 16.10.2017 / 01:14
1
answer

Insert many to many Laravel 5.5

I'm doing a data insertion in a form where it contains data from a many to many relationship, my difficulty is to insert into the pivot table more than a reference data , follow below:    Aswecansee,Ihavethefollowingarray:selected_se...
asked by 14.10.2017 / 21:39
1
answer

Save inputs with arrays with PHP / Laravel

I have a dynamically generated table where I enter multiple products. I'm trying to use a for to save these products, but if I have only one product that does not work, it needs to have more than one. I tried with foreach but it did not work....
asked by 29.08.2017 / 18:27
1
answer

make: auth not create Route :: group

I am studying laravel by following the following tutorial and caught on to the part the instructor gives the following command line php artisan make:auth In his creates the following block: Route::group(['middleware' => 'web'], func...
asked by 27.08.2017 / 22:34
1
answer

Session in Laravel 5

In my controller, I log in as follows: if(!empty($input['user'])) { $result = $this->userRepository->searchuser($input['user']); //Busca o usuario pelo login // dd($result['data']['user']); if ($resul...
asked by 06.12.2017 / 16:17
1
answer

Laravel: route with parameters

I have a school system with a call screen where it has a button that opens a modal with a form to choose the class and the date (% with%). This form will redirect to a screen with the list of students in the class chosen to launch the call on th...
asked by 21.08.2017 / 01:47
1
answer

Notifications / Mail with Laravel [closed]

I'm having trouble firing notifications with Laravel 5.4, I already followed the documentation steps, but I did not succeed. Follow my code    \ LaraShop \ Users \ Notifications \ MessageUser <?php namespace LaraShop\Users\Notificati...
asked by 22.08.2017 / 01:00
1
answer

Save value of a variable in laravel

I'm starting a project in Laravel, and in the sidebar I have a dropdow with a list in which I access the database and I bring information from 3 companies for example, and when I click on one of these companies, I would like to save the value of...
asked by 16.08.2017 / 05:11
1
answer

BelongsToMany Laravel 5.4 Class 'Department :: class' not found

I have several 4 tables Starting with Users - > Departments - > category_department - > category - > postings; Where the department_category table it serves as pivo for many to many relationship between the departments table and the...
asked by 11.09.2017 / 19:06