2016-06-25 7 views

답변

0

Route::auth()을 통해 등록 된 경로를 변경하려면 해당 경로를 직접 정의해야합니다. 그 방법은 당신을 시작하게하는 독창적 인 방법입니다.

Route::get('custom', 'Auth\[email protected]showLoginForm'); 
Route::post('custom', 'Auth\[email protected]'); 
... 
당신은 당신의 auth 미들웨어를 조정하려는 것

App\Htp\Middleware\Authenticate 그래서 그것뿐만 아니라이 새로운 위치를 알고 .

에서 :

redirect()->guest('login'); 

사람 :

redirect()->guest('custom'); 
+0

확인 감사 @lagbox –