Auth: login with username instead of email
發表於 : 2020-03-04 08:51:55
https://laraveldaily.com/auth-login-wit ... -of-email/
用帳號做登入
app/Http/Controllers/Auth/LoginController.php:
用帳號做登入
app/Http/Controllers/Auth/LoginController.php:
代碼: 選擇全部
/**
* Get the login username to be used by the controller.
*
* @return string
*/
public function username()
{
return 'username';
}