困扰我的 auth 问题
登录采用iframe post提交,然后 Auth::attempt(['username'=>'','password'=>''], true)
验证成功是可以提取 Auth::user() ,但我之后 Response::create( $content, 200, $headers )->setPublic()->send();
用于前段js解析结果,成功才跳转,在其他页面 Auth::check()
为空,求各大神解惑
注:官方文档的例子是可以的 Auth::check() == true
推荐文章: