Questions tagged as 'laravel-5'

1
answer

Customizing a Laravel user model 5.4 - Login problem

I have tried everything already, but I can not solve a problem with the login system of Laravel which is this: I created a model called Usuarios , I put all the information in it that has to be properly placed, like the array $fi...
asked by 02.03.2017 / 19:31
3
answers

How to customize password recovery email (Laravel 5.4)

How can I customize the password recovery email for Laravel 5.4, I need to change the language but can not find the place to edit.     
asked by 02.03.2017 / 12:10
1
answer

How can I differentiate authentications in laravel? Example: Administrator and Common User without using multauth

How can I differentiate routes to the same auth? I have a User table and I have registered two types of user: admin and common user, both in the User table, with the same attributes. How can I differentiate the routes that will appear for bot...
asked by 07.12.2016 / 18:42
3
answers

How to sort the query in the same order as an array used in WhereIn?

I would like Laravel to return a list of products where the ID belongs to this array: [12,5,1,8,16] , but sort by id according to array order! * What I have so far: $produtos = Produto::whereIn('id', $ids) ->orderBy( adici...
asked by 05.12.2017 / 15:30
2
answers

What's going wrong? BD + Laravel

I'm having a blade form picking up the values from the database. In it I have a date field not required to be filled. When you register an empty date, the results screen displays the date "01/01/1970" . How do I change this behavior...
asked by 13.01.2017 / 17:33
3
answers

Error while joining with Laravel's Query Builder

I'm doing the following Join: public function getStockDanger() { $data = DB::table('product') ->join('stock', 'product.id', '=', 'stock.product_id') ->where('stock.stock', '<=', 0) ->get(); return v...
asked by 07.10.2016 / 19:44
2
answers

Create profiles in laravel application

I need to modify my laravel application so that each user can see their particular content, since each user will have their own information. I already configured the default authentication using make auth and it works fine.     
asked by 11.10.2017 / 12:58
2
answers

Consultation with Eloquent do Laravel

I have this query: select Q.id,Q.questao, D.disciplina, S.serie, S.ensino from questoes as Q left join capitulos_questoes as CQ on CQ.questoes_id = Q.id left join modulos_questoes as MQ on MQ.questoes_id = Q.id left join banco_discip...
asked by 10.10.2016 / 19:38
1
answer

laravel Authentication 5.2

I'm trying to log in to laravel 5.2 but is not authenticating the user to the table. In the file auth.php I changed the validation table to login : 'guards' => [ 'web' => [ 'driver' => 'session',...
asked by 19.05.2016 / 04:24
1
answer

Difference between laravel new project and composer create-project commands

What is the difference between the laravel new nome-projeto and composer create-project laravel/laravel nome-projeto --prefer-dist ? In both cases the result is the same but in the case of the composer path, the project folder ta...
asked by 13.04.2016 / 13:36