jeudi 23 août 2018

Laravel 5.6 auth - not standard table

I quite new to Laravel and have some problems with using auth option. I'm trying to use auth on another custom table. I've setup the connection to new table already however Laravel is still searching the email field. In my table there is 'login' field instead. I don't know where to change it, anyone could help?

I'm using Laravel 5.6 I've created new Model and added protected $table to User (default) model.

that's my error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'email' in 'where clause'



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2P2nu5H
via IFTTT

Aucun commentaire:

Enregistrer un commentaire