Questions tagged as 'laravel'

2
answers

Error Route [teacher.actualizarusuario] not defined. "

I have routes defined Route::patch('misvistas/docente/{id}', 'DocenteController@actualizarusuario'); Route::resource('misvistas/docente', 'DocenteController'); Running php artisan route:list appears in the user update list. But wh...
asked by 25.12.2017 / 05:54
1
answer

Go through and save data from an array with laravel 5.1?

I have the following case, I am sending from the view to the controller some data in the following way: <div id="modalities_1"> <div class="col-md-12"> <h3>Modalidad</h3> </div> <div class...
asked by 29.09.2017 / 16:34
1
answer

Compound primary key: Illegal offset type error in laravel 5

I am new to Laravel and I do not know how to solve this problem, which is as follows: I have a table like that on MySql: Table: propiedad_x_tipo Columns: **id_tipo_propiedad** int(11) **PK** **id_propiedad** int(11) **PK** As you can se...
asked by 22.09.2017 / 01:41
1
answer

Is it possible to validate with the operator Or a FormRequest in laravel?

I have a form in which I show fines and consumptions, and a button that sends the selected elements. The question is whether you can make the FormRequest validate that one of the two is sent. return [ 'consumos'=>'required',...
asked by 29.08.2017 / 07:36
2
answers

Send data to a Laravel driver with AJAX

I am developing a web platform for an IPS with Laravel 5.4 and PostgreSQL 9.6 . The problem I have is the following: in the patient registration form, I would like to see the application by means of Ajax in the database when losing the focu...
asked by 28.08.2017 / 03:47
1
answer

Error paging in laravel 5.4

I have an error when paging the data, just load the first page and then give me a MethodNotAllowedHttpException . I've been spinning around and I can not solve it. Route: Route::post('estados/resultado','consultasController@searchestado...
asked by 15.08.2017 / 08:11
1
answer

Alias for consultation in two tables with laravel

Is there an abbreviated way to identify the columns of each table by creating the query in this way? $product = Product::with(['order'])->where('user_id','=',\Auth::user()->id)->find($id); For example, specifying something like thi...
asked by 06.08.2017 / 06:24
1
answer

Use different table name to users for login and registration

I would like to use a table name different from users that comes by default in laravel. How could I use a different table name for the login and register that will have some more columns. That same table will make the login and registratio...
asked by 07.08.2017 / 16:26
1
answer

Problem when displaying data

I have this script at the moment of executing it shows me error Tables: Controller $menu=DB::table('menu') ->select('menu','url','id_menu')->get(); $submenu=DB::table('sub_menu')->join('menu','...
asked by 09.08.2017 / 23:14
1
answer

Differences between Form :: model and Form :: open?

Good afternoon, I am learning laravel and when using the laravel collecitve library, when creating forms, I see that sometimes the form opens with Form::model and others with Form::open . As much as I look for I can not find the dif...
asked by 11.09.2017 / 20:39