Questions tagged as 'laravel'

1
answer

Fill a Select of Laravel, with a Change event of another Select

How can I use the change event of a Form::select to fill in another Form::select ? Example: I charge a main Select with some departments: Controller $masterareas = dk_master_area::orderBy('name','asc')->get(); $data...
asked by 16.03.2017 / 14:46
1
answer

How to validate a date between two columns in a db table? in Laravel

I'm trying this way: Turnos::whereBetween(DB::raw("'".$req->crear_hora_inicial2."'"), ['hora_inicio','hora_final']) ->orWhereBetween(DB::raw("'".$req->crear_hora_final2."'"), ['hora_inicio', 'hora_final']) ->exists()...
asked by 22.02.2017 / 08:43
1
answer

I get the error "PHP Fatal error: Call to a member function getKey () on string"

When executing via console php artisan db:seed I get the following error PHP Fatal error: Call to a member function getKey () on string The error occurs precisely with a function of the Seeder since with other functions it gave the exp...
asked by 17.02.2017 / 00:53
1
answer

SQLSTATE [23000]: Integrity constraint violation: 1452 Can not add or update a child row: a foreign key constraint fails

I am starting an application and it gives this error when I run the store method SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails ('laravel_apirestfull'.'vehiculos', CONSTRA...
asked by 10.02.2017 / 13:54
2
answers

laravel - configure phpstorm

Hi, I'm working on phpstorm, but I've noticed that while developing the project the code editor marks me as a kind of error certain variables. Any way to fix it?     
asked by 18.01.2017 / 07:22
1
answer

Vuejs + Laravel answer system

I have a problem wanting to update the answers to a question that was asked, the detail is that when answering the question this answer is not updated in the answer list that is in the question. I leave the code to be checked and they tell me...
asked by 28.04.2017 / 19:24
1
answer

Problem with Logout in Middleware Guest Laravel 5.3

I have the route as follows: Route::group(['middleware' => 'guest'], function() { Route::auth(); }); By clicking on logout, redirect me back to / home (as log in). On the other hand, if the Route :: auth (); I take it out of the m...
asked by 01.01.2017 / 19:25
1
answer

Error with routeing with namespace in Laravel 5.3

Good, I have the following problem ... I am using laravel 5.3 and I want to group the controllers by Namespaces to have ordered, but it does not work for me if I follow the laravel 5.3 document ... surely something I need to set somewhere. ro...
asked by 13.12.2016 / 12:34
1
answer

Queries of records in tables many to many with laravel

How would you do when checking the records of two related tables (many to many) using a pivot table of laravel? I try to do it with Joins, but I can not find what I want. The tables are: user role_user roles     
asked by 14.12.2016 / 16:39
1
answer

How to save data in a table related to another in Laravel?

I have a model called User that can take on several roles, such as an Administrator, a Supervisor, a teacher, anyway. Therefore for each of the roles I create other entities that will be related to the User model. Now, create a form to be able t...
asked by 21.12.2016 / 04:14