[英]How to redirect to a single URI after Laravel 5 Auth?
在成功进行Laravel 5身份验证而不是重定向到目标URI之后,重定向到一个常量URI的最佳方法是什么?
Assuming you are authenticating inside of your own controller you can do something like 假设您正在自己的控制器内部进行身份验证,则可以执行以下操作
return Redirect::route('routealiashere');
or 要么
return Redirect::url('path/to/route/here')
; return Redirect::url('path/to/route/here')
;
after verifying the credentials. 验证凭据后。
试试这个:
return redirect()->intended('user');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.