Questions tagged as 'laravel-4'

2
answers

How to see the queries that were executed by eloquent in Laravel?

How can I find out which queries have been executed in Laravel? For example, I have the following query: $usuarios = Usuario::with('nivel')->where(['status' => 1])->get(); I would like to know which queries were executed. Can yo...
asked by 24.08.2016 / 15:09
1
answer

How to join query string in Laravel 4 pagination?

How do I join query string in pagination of laravel 4? For example: I have a data listing and on this same screen I have a search filter. When I send a get to request the filter in the list by url http://localhost/lista-de-produtos?marca=...
asked by 01.12.2015 / 14:40
1
answer

What is the difference between Model :: lists () and Model :: all () - lists () in Laravel?

In Laravel , we have a method that we can list fields of a table in the key-value style. I can do this in two ways So: Usuario::lists('nome', 'id'); And So: Usuario::all()->lists('nome', 'id'); The result would be: [1...
asked by 17.02.2016 / 11:47
1
answer

Doubt with Routes and Controllers Laravel 4

I'm a beginner in Laravel and I'm having a problem with routes and controllers. I created a form with the following action: {{ Form::open(array('action' => 'MatriculasController@formulario' }} I created a route for this action: Route::...
asked by 29.10.2015 / 12:24
1
answer

Laravel Session - Public for Controller

I'm making a form that contains a Captcha . Captcha is generated by a PHP script that mounts an image. And I put the script in the public folder of Laravel 4 . When the Captcha code is generated it is placed in session: session_s...
asked by 26.08.2015 / 14:45
1
answer

DOMPDF: Frame not found in cellmap. What causes this error?

This problem has haunted me for a long time and I still can not find a solution for it. I have developed a system, where in a given location, the user can print a report, which is generated by class DOMPDF , in Laravel 4 . It s...
asked by 12.02.2015 / 19:55
2
answers

Sort results by a relationship column in Laravel 4

I currently have some methods that I use together that allow me to make requests to my application controlling the "withs", "orders" and such via querystring. I can do, for example: GET /users?sort=name&sex=female In this case t...
asked by 27.06.2014 / 14:18
1
answer

Relationship in Laravel / Eloquent ORM

I have a problem. I need to return the values of a relationship, however, it has the following error: ErrorException Undefined property: Illuminate\Database\Eloquent\Collection::$fileServico My code: FileClass.php public function fileS...
asked by 05.06.2014 / 05:36
1
answer

Uploading Application Laravel4 for shared hosting

My access to this hosting can only be from the folder public_html forward, I can not access a level back. I put all project files within public_html and entered a htaccess with <IfModule mod_rewrite.c> Re...
asked by 02.05.2014 / 18:54
1
answer

Constant error in the DOMPDF library

I installed the dompdf package on laravel4, using the composer. However, you are giving the following error when trying to create the object:    Use of undefined constant DOMPDF_TEMP_DIR - assumed 'DOMPDF_TEMP_DIR' The php being used is 5...
asked by 06.01.2014 / 18:47