Created
June 23, 2016 09:42
-
-
Save slow-is-fast/171a2e085259e5b87c26b70dd2308c01 to your computer and use it in GitHub Desktop.
laravel login with username instead of email
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
在auth\AuthController.php里新增一个属性 | |
protected $username = 'username'; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment