0
내가 어떻게 http://localhost:8000/custom에 http://localhost:8000/login에서 변화 기본 로그인 URL?변경 로그인 URL Laravel 5.2
내가 어떻게 http://localhost:8000/custom에 http://localhost:8000/login에서 변화 기본 로그인 URL?변경 로그인 URL Laravel 5.2
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');
확인 감사 @lagbox –