比如跳轉到根路由 # 打開Auth/LoginController.php,修改redirectTo protected $redirectTo = '/'; # 打開Middleware/RedirectIfAuthenticated.php,修改redirect()if (Auth::guard($guard)-check()) { return redirect('/');}
# 打開Auth/LoginController.php,修改redirectTo protected $redirectTo = '/'; # 打開Middleware/RedirectIfAuthenticated.php,修改redirect() if (Auth::guard($guard)->check()) { return redirect('/'); }