Questions tagged as 'laravel-5'

0
answers

Duda sent data by form

Good morning I have the following form in one of my views, which worked well. view link The only problem is that I have a controller that claims the value of that select, but only gets the id, I want it to get the name. method lin...
asked by 21.10.2018 / 04:57
1
answer

Not shown datatable in Laravel

For some reason, the data in the table does not appear using DataTables. And if I remove the return view ('home'), I get a query that eats the whole page The home view: <link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTa...
asked by 24.10.2018 / 03:47
1
answer

Is it possible to create a method that uses the GET route to allow it to receive two parameters?

I need to create a get method that receives two parameters from another method that is in the same class, I have tried but I do not know how to do it, this is what I have .. * * @param string $usuarios * @param int $usuariosOpciones *...
asked by 29.10.2018 / 00:30
0
answers

Validate array with laravel before inserting into database

I need to print a validation message $result=$reader->toArray(); //Matrícula es el nombre de una de las matrices [ 'matricula' => 'unique:users,matricula' ];     
asked by 18.10.2018 / 02:39
0
answers

Problems plotting Chart.js in Laravel 5

I need to use chart.js in laravel 5, I never really work with that library, even though I do not see that it is very complicated. I found the material of fxcosta / laravel-chartjs but even that does not work for me, I get the following error in...
asked by 23.10.2018 / 06:26
0
answers

How to make an inquiry to hours in laravel?

I have a database more or less like this --------------------------------- | inicio | fin | dato | --------------------------------- | 14:00 | 18:30 | A | --------------------------------- | 19:00 | 23:30 | B...
asked by 17.10.2018 / 21:40
0
answers

New method in controller

Good morning I wanted to ask, if it is possible to add a new POST-type method to a resource controller that already has its methods edit, destroy, store. I've tried to do it like that but do not want to aggravate the route. Route::post('...
asked by 16.10.2018 / 00:31
1
answer

Return two a variable in two views

I have a view called show, to which I want to put a select, defined in the variable $ usersOptions, the problem is that this variable only returns to user.index, there is some way that you can also return it to user .show? /** * Display a...
asked by 16.10.2018 / 03:53
3
answers

Problem with route show function LARAVEL

After a lot of searching for google and not finding a solution to my problem, I decided to ask the wisdom of the internet: These are my routes: Route::get('/customers', 'CustomerController@index') ->name('customerIndex'); Route::get('/...
asked by 16.10.2018 / 17:09
0
answers

I want to read a .dat file with laravel and I can not find how

I would like to know if you know how to read a .dat file or transform it to excel at least, to pass it to a mysql database     
asked by 17.10.2018 / 17:56