Questions tagged as 'laravel'

1
answer

Laravel 5.6 and Vue Default values

I'm working on a project with Laravel 5.6 and Vue.js 2 that is costing me more than I thought. I have read several articles and questions in this community and everywhere I have understood that it is normal to use components of Vue.js to pass...
asked by 15.02.2018 / 20:41
1
answer

Saving data from a form with a bootstrap modal

I have a modal with a form and when I give the button to save the data I have entered, it does not send me to the address / path that is defined in the action attribute of the form tag, and therefore it does not save data In the database, what w...
asked by 25.02.2018 / 15:19
2
answers

Determine the 5 most-recorded items in a database table

There is some method in laravel 5 to determine the 5 most elements that have been inserted into a database table.     
asked by 12.04.2018 / 20:51
1
answer

CRUD of users, add more edit and update routes

I currently have a CRUD for the users. I'm using the edit and update path to modify the name and email data, but I need another edit path and an update path to change the user's password. I want to work them separately. The question is...
asked by 13.04.2018 / 02:02
1
answer

Laravel, how to run a different seeder to the DataBaseSeeder.php

I am trying to create a Seeder called users to be able to modulate the seeds for each different table and have the project better organized. The problem is that when I use the command: php artisan db:seed Only execute the "DatabaseSeeder.ph...
asked by 11.01.2018 / 23:42
1
answer

How can I handle this type of relationship in Eloquent de Laravel?

I know how to handle relationships like "One to Many" but when creating a new sale, what would be the best practice using Eloquent to save?     
asked by 17.01.2018 / 15:03
1
answer

like going through a table and getting the values inside the input with jquery

I want to go through the table and get the value inside each td and then inside the input in its value property. I have this but it does not work for me. it returns only the first 2 columns the rest that has input does not do it. $("#2a tbo...
asked by 02.01.2018 / 20:45
1
answer

laravel remove index.php from the url

I have a site where I can access with https://www.pagina.com but also with https://www.pagina.com/index.php I would like NOT to be able to access with that index.php (seo questions) my .htaccess: <IfModule mod_rewrite.c> &...
asked by 03.12.2017 / 01:52
2
answers

Comment line in Laravel 5.1

How can I comment a line in a Laravel template that contains @include , @section , @endsection and even img src"{{ asset('libs/magnific-popup/magnific-popup.js') }}" I tried with <!-- -->...
asked by 10.11.2017 / 14:42
1
answer

Generate a pdf with domPdf in laravel

Good afternoon I have a small problem and it is the following I have my route for the pdf which is as follows: Route::resource('cuadre','CuadreController'); Route::get('vista-html-pdf',array( 'as'=>'vistaHTMLPDF',...
asked by 19.11.2017 / 21:34