【发布时间】:2018-02-28 09:29:37
【问题描述】:
以下处理身份验证后我的 Laravel 应用程序上的重定向:
protected function sendLoginResponse(Request $request)
{
$request->session()->regenerate();
$this->clearLoginAttempts($request);
//dd(redirect()->intended());
return $this->authenticated($request, $this->guard()->user())
?: redirect()->intended($this->redirectPath());
}
这在我的本地机器上运行良好,但在运行 Elastic Beanstalk 的生产服务器上却不行。
我的代码中的dd() 在两个环境中都显示了正确的路径,但在生产中它重定向到url /。为什么?
【问题讨论】:
标签: laravel redirect amazon-elastic-beanstalk