Questions tagged as 'laravel-5'

1
answer

I can not make social facebook plugins go on my site

I am having problems with the facebook services for the developer. When I work at localhost, it's fine, the issue is when I test it on the host (hostinger). The most visible is the comment box that does not appear directly. But the share button...
asked by 25.09.2016 / 23:07
1
answer

Problems with the with () method in Laravel

I'm doing the following query. $Products = Product::with('productFiles')->where("name", "like", "%{$request->value}%")->limit(10)->get(); This query calls all the products and an array called "productFiles" WITH DATA. But if I a...
asked by 05.05.2016 / 20:33
1
answer

Laravel Excel Structure (Importing File)

I am using the Laravel Excel library and I have been reading the documentation but it does not say anything to read the excel from a certain row number, that is, I have the first 6 lines of the excel with information and the "title" of each co...
asked by 17.05.2016 / 10:48
2
answers

Problem with route resource

I have the following structure in the routes: Route::group(['prefix' => 'ventas', 'as' => 'ventas.'], function () { //INICIO Route::group(['namespace' => 'Inicio'], function() { Route::get('inicio', [ 'as'...
asked by 06.01.2017 / 15:20
1
answer

Delete files by extension in laravel 5.5

I'm trying to delete all the files in a folder that have the extension .jpg is possible using Storage :: delete ('file.jpg');     
asked by 20.11.2017 / 18:55
2
answers

Display form data in another view

I have to pass the data of a form, by means of a controller to a new view (different from the form). I have written the following: In web.php: //ruta para meter datos y llamar al controlador: Route::get('/formalumno','AlumnosController@m...
asked by 03.02.2018 / 13:28
3
answers

does not send any kind of request when deleting record by ajax (jquery) and laravel

I've been trying to solve this for a few days and I do not get it, I am doing the logic to delete by ajax records but it does not work for me, if I go to the section of firefox for developers, in the network tab, once I make the request, it does...
asked by 30.11.2016 / 12:59
2
answers

Form action in modal

My form is not activated, I have never done this, so I need a little help. At the time of updating, nothing happens. Modal: <div class="modal fade" id="modalUpdate{{$o->idOrder}}" tabindex="-1" role="dialog" aria-labelledby="myMo...
asked by 24.05.2017 / 08:05
3
answers

doubt with isset () laravel 5.5 function

I have a concern regarding the isset function, I have the following lines. $usuarios=usuarios::where("usuario_ad", 'danielad')->get(); $prueba=isset($usuarios); dd($prueba); With this, the query throws records to...
asked by 04.01.2019 / 20:49
1
answer

Problems when performing a COunt in laravel 5.7

I have a function where I query a table with SQL and the result I see it, it works fine but I need to count the number of records that table has and I get an error. public function myFunction($data) { $data = DB::table('users') -&...
asked by 01.10.2018 / 20:42