-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi Guard issue. #15
Comments
i guess it's easy to do. just need to pass guard name too in the method |
There is already support for specifying a different guard when impersonating: https://github.com/stechstudio/filament-impersonate/blob/master/config/filament-impersonate.php#L4 https://github.com/stechstudio/filament-impersonate/blob/master/src/Impersonate.php#L38-L40 Is this what you're looking for? |
Nearly,.. So ineed to specify the guard to impersonate each time So when impersonating admins use guard admins and when impersonating users use guard web.. I don't want to rely on one guard in config ( i don't mind if in config we can set default guard ) and i don't want to rely on filment guard too .. |
So there is two approaches..
|
using this package with two guards "web" (those my website users) and "admins" (filament users)
and added this package to both.
the problem is when impersonating "web", it works well.
but when trying to impersonate "admins" guard, it just picks the same id in guard "web"
lost? me too 😂.
so in admins table
and in users table
when i click impersonate on admin2, it impersonate user2 instead.
auth.php
The text was updated successfully, but these errors were encountered: