Created
August 16, 2018 13:32
-
-
Save EduardoSP6/88a4ac8bb1180e6f237cdf80e7620c8c to your computer and use it in GitHub Desktop.
Autenticar usuario no Laravel por outros campos da tabela users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Autenticar usuario no Laravel por outros campos da tabela users: | |
No arquivo LoginController: | |
- Sobrescrever o metodo: username() | |
- Sobrescrever o metodo: validateLogin() | |
- Sobrescrever o metodo: credentials() | |
* Esses metodos estão na trait AuthenticatesUsers.php | |
Referencia: https://laracasts.com/discuss/channels/general-discussion/authenticate-on-custom-fields-laravel-53 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment