Laravel 5.2 Include Field for Authentication

1

Good afternoon, I would like a light to change the way that Laravel authenticates, I added a column ( login ) in the users table I would like to know how I can do to rather than authenticate with the columns email and password I use the login and password columns. Can anyone help?

    
asked by anonymous 02.02.2016 / 20:48

1 answer

-1

In the User.php model, change the row below with the columns you want:

protected $fillable = ['nome', 'email', 'password'];

Being email and password responsible for login to the system.

    
02.02.2016 / 20:52