Questions tagged as 'laravel-5'

0
answers

Print in Word

After checking my inability to print in PDF, I looked for other ways to print documents. A feasible option is to use the docx files, from Microsoft Word. I did this test: public function imprimirWord(Juego $j){ $phpWord = new \PhpOffice\Ph...
asked by 08.09.2018 / 17:55
2
answers

Sort array that brings all the elements in another array and classify the values

I do not see any way of asking it in a technical way, so I will be supported with images. I have an array which I get in a request in Laravel 5.6 that contains the following values: The idea is to pass them to another array so that they...
asked by 23.08.2018 / 19:01
0
answers

Create pager with Vuje and Laravel

I have a table with a search and number of records to show and I'm creating a pager with Previous and Next arrows. I from Laravel got this answer:    current_page: 1 data: Array (5)    first_page_url "link "    from: 1    last_...
asked by 24.08.2018 / 17:17
1
answer

Sessions in Larvel

I have the management of a store and when I want to see the contents of the car Laravel is asking me to log in, the route was not protected with this validation and I do not know what can happen, this is the view controller for that action pub...
asked by 22.08.2018 / 16:43
0
answers

Problems printing a PDF

You see, I want my project, hosted on 000webhost, to be able to print PDF files. This is the function of my controller: public function imprimir(Juego $j){ $pdf = PDF::loadView('pdf.juego', compact('j')); $salida=$pdf->outpu...
asked by 20.08.2018 / 12:46
0
answers

create custom class in resources folder laravel .. can you?

I am currently doing a project in laravel. I have created a simple class to build a grid manually, the project managers want that class to be inside the resources / views folder. I have already tried several ways but still nothing to register th...
asked by 14.08.2018 / 17:58
1
answer

I do not run the scripts in Laravel 5.6

[! [In this part there are the 2 scripts that I am executing, but none of the 2 execute me at the time of running the website.] [2]] [2] I need help, I do not know if in Laravel 5.6 something extra is needed to run the scripts, or if an...
asked by 12.08.2018 / 01:15
1
answer

Blade - Go through two arrays

I have a function that collects the data of a user and also collects the rols that are in the system, the idea is to compare what is in the system with the user is assigned and check them with a checkbox The method that collects the roles of...
asked by 08.08.2018 / 12:14
0
answers

Undefined Variable in Laravel

I have a project in laravel where the main path is layouts.admin, well in admin.blade.php I am loading movie data as if it were an index. web.php Here is the admin.blade.php Here is the show motif that loads the data of t...
asked by 08.08.2018 / 15:51
1
answer

Go through an array of a model (laravel)

I have a class Roles where I define a static array like this <?php namespace App; use Zizaco\Entrust\EntrustRole; class Role extends EntrustRole { public static $roles = [ 'admin1aaa' => [ 'name' => 'admi...
asked by 07.08.2018 / 14:40