Modify existing Authorization module (email to username)

后端 未结 5 1658
灰色年华
灰色年华 2020-11-29 09:38

I would like to modify the existing Authorization module provided by Laravel 5, instead of asking for the email it will ask for the username field

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 10:20

    you can just override auth username function from LoginController.php in laravel 5.3

    public function username(){ 
       return 'username';
    }
    

提交回复
热议问题