Questions tagged as 'laravel'

1
answer

PDF in Binary DOMPDF laravel

I have a problem with the laravel when mounting a PDF. It gives the output all in binary. I'm downloading the link See the code: public function relatorio($id) { $pedidos_id = Pedidos::find($id); $pedidos['ped...
asked by 07.12.2017 / 13:49
2
answers

How to pass parameters to the direct resource controller of View with Helper url ()

I have the following route in my Laravel application (v5.5): Route::resource('tags', 'Painel\TagsController'); As official documentation , this gives me a route with action edit, verb GET and URI (/ photos / {photo} / edit). In my View I n...
asked by 21.09.2017 / 01:32
2
answers

List Tree Categories in Laravel 5.1

I'm starting with Laravel 5.1 and I'm a bit lost yet. I need to list categories, subcategories and "sub-subcategories". Table: Categorias ------------------------ id | int nome | varchar categoria_pai | int Data:...
asked by 11.08.2015 / 19:53
2
answers

Remove an item from an array in Laravel's session

I have an array in a session and need to remove an item only. I put session()->forget('cart') It removes all items. What is the correct way to remove only one? Controller namespace App\Http\Controllers; use Illuminate\Http\Requ...
asked by 31.08.2017 / 16:08
1
answer

Pass information between two PHP pages

Good afternoon! I'm having the following problem: I have a php page named locality that has the fields "name" and "city". In the name field, I type the name of the locality, such as "Beautiful Corner", and in the city field I retrieve from a t...
asked by 23.10.2017 / 19:12
0
answers

Database with Municipalities, City, Neighborhoods [closed]

Does anyone know where I can get a database with *States * Counties * City * Neighborhoods in Brazil ?     
asked by 18.02.2018 / 03:25
0
answers

What is the difference between Guard () and Middleware ()?

I've been noticing that both do basically the same thing ... I may have misunderstood, but what would be the difference between the two in Laravel?     
asked by 03.09.2017 / 22:06
2
answers

DomPDF API for PDF generation in PHP

I use the software laragon that already comes with laravel and composer integrated to the project, I executed the line: Note: I did not bother with good practice yet, I want to make it work first composer require barryvdh/laravel-dompdf...
asked by 10.09.2017 / 14:14
1
answer

Type of relationship between tables (Laravel)

I'm implementing my CBT, about photos and such .. But now I got a doubt in the time to create the tables ... I'm using Laravel okay? Next, I have the following tables: users - roles - photos - tags works as follows: There are functions o...
asked by 15.08.2017 / 03:04
0
answers

Send Hash in the e-mail and confirm on the form

I would like to make a system that works like this: For the student to confirm the proof of the test, he would have to receive a hash code in his email. If he did not know the code, he would have to put the code of the test and the secret answer...
asked by 31.10.2017 / 21:28