Skip to content
Advertisement

Tag: laravel-middleware

Middleware auth keep logging me out? Edit: RedirectIfAuthenticated logging me out?

Fairly new to Laravel and tried to make a Login page. Edit 2: Tried to use Guard and when I’m redirected to RedirectIfAuthenticated it seems somehow the auth()->check() or Auth::check() return false at handle function here’s my RedirectIfAuthenticated.php The Auth was able to store the user, but it keeps logging me out when I’m going to HomeController where it had

Advertisement