Not authenticating on login

Not sure what step im missing... When I go to my login page, and login. It just redirects straight back to the login page. If I go to the Authenticate middleware, and dump out $guard = Filament::auth(); it returns false... Not sure why?
1 Reply
Jamie Cee
Jamie Cee3mo ago
And for info, my User model does implement FilamentUser, and contains
public function canAccessPanel(Panel $panel): bool
{
return true;
}
public function canAccessPanel(Panel $panel): bool
{
return true;
}
$user = Filament::auth()->user();
dd($user);
$user = Filament::auth()->user();
dd($user);
The dump does show the correct user inside the Login class... So could the authentication not be updating the session properly? Nevermind, found the reason. SESSION_DRIVER in my env was database, but changing to file worked.
Want results from more Discord servers?
Add your server