dreftas
Explore posts from serversFilament::auth()->login();
Thanks for your effort. Actually I needed to call these, if user is currently logged in:
Filament::auth()->logout()
session()->invalidate()
session()->regenerateToken()
And now everything works fine, Filament::auth()->login($model)
does its job.
Thanks again.6 replies
Filament::auth()->login();
@Dan Harrin for
Route [login] not defined
yeah, defining my route that redirects to Filament login page solved problem. But most important one is, that Filament::auth()->login($userModel)
does not login me as specified $userModel, I'm not logged in as anyone after that function. What I expect that if I use Filament::auth()->login($userModel)
I should be logged in as that user.6 replies