我一直Auth::attempt
在努力检查用户的凭据是否正常。我从Auth::user()
.
if (Auth::attempt(array('email' => $email, 'password' => $password),true)) {
// everything is fine and user is logged
return view('login', ['user' => Auth::user()]);
}
然后,如果我在另一个控制器中尝试 a Auth::check()
,它总是返回false
.
我发现我的会话不起作用。简单的事情,比如 put 或 get describe here。
那么如何激活 lumen 使用的会话呢?
我正在使用 nginx + php-fpm。
nginx/error.log
我在or上没有错误lumen.log
。
谢谢