2017-12-26 8 views
0

laravel 5.5での認証では、ユーザーのログインと登録の自動フォームを提供します。しかし、ログインフォームのログインボタンをクリックすると、ルート( 'ログイン')が表示されます。laravelで認証ルートを学習するのが難しい

これは何を意味するのですか。同様に、レジスタや他のケースの場合も。何か案が?

答えて

0

Auth::routesは、次のコードを持っている、Router::authmethodを呼び出す:だから

/** 
* Register the typical authentication routes for an application. 
* 
* @return void 
*/ 
public function auth() 
{ 
    // Authentication Routes... 
    $this->get('login', 'Auth\[email protected]')->name('login'); 
    $this->post('login', 'Auth\[email protected]'); 
    $this->post('logout', 'Auth\[email protected]')->name('logout'); 
    // Registration Routes... 
    $this->get('register', 'Auth\[email protected]')->name('register'); 
    $this->post('register', 'Auth\[email protected]'); 
    // Password Reset Routes... 
    $this->get('password/reset', 'Auth\[email protected]')->name('password.request'); 
    $this->post('password/email', 'Auth\[email protected]')->name('password.email'); 
    $this->get('password/reset/{token}', 'Auth\[email protected]')->name('password.reset'); 
    $this->post('password/reset', 'Auth\[email protected]'); 
} 

、あなたは上記を参照できるよう、ログインフォームを表示するために呼び出す取得するために名前のルートloginを指します。

関連する問題