Questions tagged as 'laravel'

0
answers

Link 3 models in Eloquent

I am developing a system that, among other functions, will show the grades of a school, so I must manage levels, courses, subjects, evaluations and grades. Now the subject is the following; I do not know how I can relate the models of Student...
asked by 04.01.2018 / 05:53
1
answer

How to throw an event after delivering the response to the user in laravel?

Well basically what I need is to delete some files from the storage folder, but I want that to happen every time a request is terminated. I have already created an event and a listener that is responsible for doing that, which is called befor...
asked by 04.01.2018 / 17:29
0
answers

how to use data-remote from Bootstrap validator with Laravel?

I understand that the answer is status code 200 or 4xx but I can not get the request to travel. <div class="form-group col-md-6"> {!! Form::label('correo', 'Correo electrónico')!!} {!! Form::email('correo',null,['class...
asked by 07.01.2018 / 20:08
1
answer

Return button to form with its values laravel

I have not found anything on interenet or if I do not apply it I have a form which has many "select" fields. The form is sent, and the result page has a button to return to the form page. Well, the issue is that I would like that once you click...
asked by 03.01.2018 / 02:11
0
answers

how to pass an image of a modal by ajax with laravel?

I have a table and in each row I have a button to edit the image of the corresponding row and other data of the row, the problem is that all the data is sent to my controller but the data of the image is not It sends and I do not know what is th...
asked by 03.01.2018 / 22:05
2
answers

How to send several functions from different controllers to a view in laravel

I have a view where I want to load several data from different tables, I have them in different controllers, how can I send that data through a route to the view. Route::get('estudiantes',function(){ return view('estudiantes');})->name('est...
asked by 12.01.2018 / 17:47
1
answer

output orders insert several inputs and send to the controller LARAVEL

I need a little help with this, I'm a little new in laravel and js, what I want to achieve is to insert several inputs (products) to an output order (or detail) and send it to the controller. I have the js to insert several records of inputs (th...
asked by 10.01.2018 / 15:12
1
answer

Error: Base table or view not found (Laravel 5.5)

This is the error: "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'codearte_site.posts' doesn't exist (SQL: select count(*) as aggregate from posts )"    It happens to me with all the projects that I have in larav...
asked by 22.12.2017 / 23:28
2
answers

problem when viewing an array on a Laravel blade table

Well thanks to the colleagues of the forum I managed to do the join to get the data in an array as I wanted, this is the controller's method: public function solicitudes() { $vacations = \DB::table('vacations') ->se...
asked by 27.12.2017 / 10:14
0
answers

Dilemma Laravel 5.5 ORM and Database

I have a query regarding the logic that I should use to use in production in a real estate system: In a form charge (itero) the environments: // ... formulario @forelse(App\Ambiente::all() as $env) <fieldset class="form-group col-md-...
asked by 02.01.2018 / 23:24