Home > Article > Backend Development > Laravel 5.1 login using username
If you do some research on laravel login, you can find this code
Here we make a judgment whether the attribute username exists. There is no way to use email. So if you want to log in with a username, just change AuthController.php and add a username attribute.
view Original text: http://note.mango.im/article/26 |