![](/img/trans.png)
[英]How to redirect to the requested URI after authentication using Zend_Auth?
[英]How to redirect to a single URI after Laravel 5 Auth?
在成功進行Laravel 5身份驗證而不是重定向到目標URI之后,重定向到一個常量URI的最佳方法是什么?
假設您正在自己的控制器內部進行身份驗證,則可以執行以下操作
return Redirect::route('routealiashere');
要么
return Redirect::url('path/to/route/here')
;
驗證憑據后。
試試這個:
return redirect()->intended('user');
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.