This is my login function in AuthenticatesUsers.php
public function postLogin(Request $request)
{
return $this->login($request);
if (Auth::validate(['email' => $request->email, 'password' => $request->password, 'block' => 1])) {
return redirect("/")->withErrors('User blocked');
}
}
I set 1 in blocked field in DB ant still let's me login. Can u tell me why ?