Auth: login with username instead of email

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Auth: login with username instead of email

文章 yehlu »

https://laraveldaily.com/auth-login-wit ... -of-email/

用帳號做登入

app/Http/Controllers/Auth/LoginController.php:

代碼: 選擇全部

/**
 * Get the login username to be used by the controller.
 *
 * @return string
 */
public function username()
{
    return 'username';
}
回覆文章

回到「laravel」