【发布时间】:2017-05-17 10:45:24
【问题描述】:
我在我的laravel 5.4 项目中实现了Multi-Auth,但是每当我尝试从另一台设备登录时,我都会收到此错误。
Response.php 第 386 行中的 ErrorException:标头可能不包含更多 比单个标题,检测到新行
现在我已尝试查看此网站中的其他类似问题,但没有一个与我在登录控制器中所做的匹配。
这是我的登录控制器:
class LoginController extends Controller
{
use AuthenticatesUsers;
public function __construct()
{
$this->middleware('guest', ['except' => 'logout']);
}
public function username()
{
return 'mobile_no';
}
protected function redirectTo( )
{
$notification = array(
'message' => 'Welcome Admin!',
'alert_type' => 'info',
'title' => Auth::user()->name
);
return redirect('/home')->with('notification', $notification);
}
}
我的redirecTo() 函数有什么问题?
【问题讨论】:
标签: php laravel http http-headers laravel-5.4