Questions tagged as 'laravel'

1
answer

Laravel 5 authentication does not display errors

Good afternoon, I'm using Laravel 5 to redo a system and on login screen when authentication is not done the user is redirected to the form again but I can not return any errors. Model User protected $connection = 'pgsql2'; protected $pri...
asked by 03.12.2015 / 20:12
2
answers

Publish Laravel 5 in a subfolder

I need to publish a system that I made using Laravel 5 for my client, however, I only have FTP access. I installed Laravel via composer on my localhost, it works great, but I do not know how to put that system on the air via FTP. In my case, Lar...
asked by 22.09.2015 / 15:37
1
answer

Relationship N: N in Laravel does not write object attributes

My tables briefly have the following structure: minutes: id | vigencia Products: id | nome | descricao ata_producto: ata_id | produto_id | vlr_produto | qtd_produto The same product may have different value depending on t...
asked by 13.09.2015 / 20:23
1
answer

Middleware for authentication by routing to an existing vector in Laravel

I am now beginning to understand Laravel's routing system, and I have a question about Middlewares. Can I have two equal routing for the same vector where, when my user is authenticated, will the return of this routing be different? Example: R...
asked by 22.07.2015 / 17:04
1
answer

How to concatenate value in a dropdownlist in laravel 5?

How to add the first default value in a dropdownlist? I tried to do this: {!! Form::select('Usuario.est_id',array('null' => 'Selecione') + $estados, null, ['class' => 'form-control']) !!} but I get the error: FatalErrorException in 30...
asked by 21.07.2015 / 23:53
1
answer

Return in Pagination View from Array in Laravel / Paginate :: make ()

When I create a pagination manually, it is giving error, it does not create in the view the amount of exact elements as I determine. On my controller: public function getIndex(){ $fileClass = FileClass::with(['FileServico']) -&g...
asked by 06.06.2014 / 01:14
2
answers

Create user with encrypted password

I have doubts regarding Laravel one of which is reflected where to enter the field: $password = hash::make('password'); Since I want to encrypt the password of the user creation form. The View code is: {{ Form::open(array('route' =...
asked by 21.10.2014 / 17:12
1
answer

Search cross-results in related tables

I created several tables: Users: chave primária email senha Physical Detail: user_id altura Personal Information: user_id estado_civil Now I'm having trouble fetching cross-results. Example: Find users with altura =...
asked by 01.09.2014 / 05:36
1
answer

how to do a search with several filters as a parameter in laravel?

I have a question about how to search for clients with multiple filters. Example: nome cliente , tipo de cliente , status do cliente , endereço , cidade . Detail: All these filters are in different fields....
asked by 31.08.2014 / 05:46
1
answer

Throwing Exceptions in Eloquent ORM Observers

I have the following code in my model: public static function boot(){ parent::boot(); // Não deixa excluir caso possua registros vinculados. static::deleting(function($content_area){ if($total = $content_area->contents-...
asked by 12.05.2014 / 18:04