Questions tagged as 'laravel'

1
answer

Delete record with laravel and ajax

The Error that throws me ** *** Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException No message * ** The data if you identify them but I think the error is in the ajax ** THIS IS MY FORM {{Form::open(array( 'u...
asked by 14.12.2018 / 04:54
1
answer

Format fields with Laravel-Excel

The following code allows you to export a .CSV file using the maatwebsite / laravel-excel library from Laravel 5.2 . Excel::create('Filtro Productos Concentrado', function($excel) use($ini, $fin, $gr) { $granjas = Granja::all();...
asked by 09.04.2018 / 21:46
1
answer

Send and collect data sent with AJAX

I am doing a small system but I can not send the data with serialize() to my controller. How can I solve it? JavaScript that sends the data via AJAX: $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf- token "]')...
asked by 07.03.2018 / 21:13
1
answer

View a PDF in Laravel

I want to see a PDF stored by a client, without downloading it, just see it. Previously used code in PHP . <?php header('Content-Description: File Transfer'); header("Content-type: application/pdf"); readfile('file...
asked by 03.03.2018 / 15:45
2
answers

Laravel + Vue.js does not pass variables to component

I am working on this project with Laravel and Vue.js . I need to show a table with a lot information. For this I decided to use a Vue component that renders a table and the paging buttons with little information. This works very well in...
asked by 02.03.2018 / 22:06
2
answers

Pivot table values with laravel

I am using laravel 5.5, I have a Member model and a Team model, I made the belongsToMany relationship correctly. The problem is that in the pivot table of that relationship there are several data that I need to access, for example the fields sea...
asked by 05.03.2018 / 01:58
0
answers

Select item within datatable with laravel dusk

To be able to complete my test I have to select an option of a select within a table with datatable ( link ) but laravel dusk does not find the element: I try to select the select option in this way in the test: $browser->with('#tabla...
asked by 17.04.2018 / 21:57
1
answer

Problem redirect login AUTH

When the admin logs, it is supposed that it should be redirected to a view called admin, but instead when the admin logs it it is redirected to the user's login. Web.php Auth::routes(); Route::prefix('admin')->group(function(){ Route::g...
asked by 24.02.2018 / 02:48
1
answer

Auth laravel 5.5 with a different table

I am trying to authenticate users with a table different from 'users', which is the default Laravel, my table fields are called different in this case "mail" and "password" I can not do the authentication because I do not recognize the field...
asked by 28.02.2018 / 21:39
1
answer

How do I access a view if it is a normal user and another view if it is an administrator using the same driver?

I wanted to access a view by means of a function in a controller if it was an administrator and in another view through that same function of the same controller for the user, but I do not know if this is possible or if it will give me problems...
asked by 28.01.2018 / 17:11