You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a second guard for customers at the frontend. And I use filament as the backend.
I'm logged in to the backend with the standard guard, and I login into the frontend.
After that, I logout in the frontend and when I try to login again, it logs me (I see that in the controller), but when the page is rendered, I'm not logged anymore.
the only way to get logged is refresh the backend tab, and then login. In that way I correctly see the frontend as a logged in user.
This I my code for login
public function store(LoginRequest $request)
{
$request->ensureIsNotRateLimited();
if (! customer()->attempt($request->only('email', 'password'), $request->boolean('remember'))) {
RateLimiter::hit($request->throttleKey());
throw ValidationException::withMessages([
'email' => trans('auth.failed'),
]);
}
RateLimiter::clear($request->throttleKey());
$request->session()->regenerate();
return redirect()->intended($RouteServiceProvider::HOME);
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I use a second guard for customers at the frontend. And I use filament as the backend.
I'm logged in to the backend with the standard guard, and I login into the frontend.
After that, I logout in the frontend and when I try to login again, it logs me (I see that in the controller), but when the page is rendered, I'm not logged anymore.
the only way to get logged is refresh the backend tab, and then login. In that way I correctly see the frontend as a logged in user.
This I my code for login
Any idea?
Beta Was this translation helpful? Give feedback.
All reactions