我的申请有问题。我10个月后就没做过了。现在,我在登录表单上遇到了一个问题:
FatalThrowableError
Call to a member function attempt() on null
$this->auth似乎没有初始化.
发布于 2018-06-19 10:05:51
很抱歉它没有回答我的问题。
trait AuthenticatesAndRegistersUsers
public function postLogin(Request $request)
{
$this->validate($request, [
'email' => 'required|email', 'password' => 'required',
]);
$credentials = $request->only('email', 'password');
if ($this->auth->attempt($credentials, $request->has('remember')))
{
return redirect()->intended($this->redirectPath());
}
return redirect($this->loginPath())
->withInput($request->only('email', 'remember'))
->withErrors([
'email' => $this->getFailedLoginMessage(),
]);
}
$this->auth为空
https://stackoverflow.com/questions/-100004947
复制相似问题