I have a login system, after passing the if, I check Auth :: user () and it has value, but the routes that are in the middleware do not work, what will be the problem?
if (Auth::check() || ($user && Hash::check($password, $user->password))) { Auth::login($user); return redirect(route('home')); } else { return redirect(route('login')); }
1.4m articles
1.4m replys
5 comments
56.9k users