Questions tagged as 'laravel'

1
answer

Laravel update status of records

Good I need to automatically update the status of my budget to "Due" when the expiration date has already passed my budget table: id fecha_emision status total fecha_expiracion cod_us...
asked by 03.07.2017 / 01:47
1
answer

NotFoundHttpException in RouteCollection.php line 161

Greetings, I'm working on laravel 5.3 and none of my routes work, the only one that works is the root path '/' , I do not understand why. web.php <?php Route::get('/',function(){ return view("certificado.index"); }); /*Route:...
asked by 23.09.2017 / 19:41
4
answers

Laravel Take PDF of a record not whole table

I have a table that contains the records in the following way and I want the data it contains to be printed in a PDF from registration to registration, not to print all the records, that is why a button is generated in the table corresponding to...
asked by 21.09.2017 / 12:44
1
answer

Laravel mix 5.4 versioning

Following Laravel's documentation, he says that it is unnecessary to keep the css and js in development, which I think is correct. Then I did the following, I have in webpack.mix.js: mix.js('resources/assets/js/app.js', 'public/js')...
asked by 24.07.2017 / 15:28
1
answer

concatenate names laravel guards

I receive the name of the logged in user with the following code: {{ Auth::guard('profesor')->user()->nombre }} I want to concatenate with the last name, how can I do it?     
asked by 23.06.2017 / 05:42
2
answers

PHP Artisan migrate: Class Schema not found

I am studying Laravel 5.4 and I have the following problem: When performing a migration, in the console of Windows I execute the command: php artisan migrate When executing this command, it shows me the following error:...
asked by 04.05.2017 / 23:40
1
answer

How to group data from a related table in Laravel?

I want to group the records that have more than one related record. Example: I have a table called assignments and another table called sales, so an assignment can have a lot of sales. In the table assignments I have 2 records and in sales I...
asked by 08.03.2017 / 14:38
4
answers

Random data in Blade / Laravel 5.1

I want to generate random data in my views, specifically I want to go through the results of a query and each one assign a different color, all this in my views of Blade (Laravel) . Something like this (similar to what I want to do): $ar...
asked by 12.11.2016 / 03:05
1
answer

How to keep data in my session during all requests in Laravel 5.1?

Greetings, what I need is to keep some data sent from a form in an array that I store in Session de laravel, I'm doing it in the following way: In the routes.php I have: Route::bind('evento', function($slug){ return Deportes\Even...
asked by 07.07.2017 / 13:27
1
answer

Doubt to create a ModelFactory Laravel 5.3

Knowing that I have 3 tables: people (id, name, surname) $factory->define(SIMante\Personas::class, function ($faker) { return [ 'nombres' => $faker->firstName, 'apellidos' => $faker->lastName, ]; });...
asked by 22.11.2016 / 05:03