Questions tagged as 'laravel-5'

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 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
0
answers

how to upload image with ajax and laravel?

I want to save an image with ajax and laravel but I get an error in js, and I think it's because the image is not saved. view <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleMo...
asked by 04.01.2018 / 17:42
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
1
answer

Error migrating in Laravel 5.5

when doing the migrations of the tables, in my project of laravel 5.5 . I get this error, clean and configure the cache, but the error remains, does anyone help me? Thanks In Connection.php line 664: SQLSTATE[42S01]: Base table or view...
asked by 22.12.2017 / 17:00
1
answer

how to pass data by ajax with laravel?

I have to update the status of the vehicles that are in a table, so far I have updated the status but what is not is how to send the data to my table but without reloading the entire page ie with ajax I leave my code thanks AJAX: function A...
asked by 02.01.2018 / 19:43
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
1
answer

views in laravel

I have a route: Route::get('index function(){ return view('almacen.articulo'); }); It is an Index file found in: resources/views/almacen/articulo/index.blade.php and I call the view in my general index in this way: <a href="...
asked by 11.12.2017 / 03:27
1
answer

Laravel 5.4 and Centos 7: storage / logs / laravel.log (Permission denied)

I'm using PHP 7.1 on Apache and I just installed a Laravel 5.4 project on Centos 7, and I get the following error: My user is "root", the permissions of my directory are the following: I have executed the following commands:...
asked by 11.12.2017 / 18:28