📅  最后修改于: 2022-03-11 14:54:29.695000             🧑  作者: Mango
All we need is add a method in app/Http/Controllers/Auth/LoginController.php:
/**
* Get the login username to be used by the controller.
*
* @return string
*/
public function username()
{
return 'username';
}