Can't use singel role in guard web and api #2452
Unanswered
rickyanwar
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Yes. You can create a role for one guard, and tell the application to always find roles based on that guard (regardless of what guard the user logs in with). You have to make one change in your user model, as explained in my comment posted here: #2421 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have app , use web and api ,same function, used spatie for manage the role and permission, now role only working like this we need create both of guard
admin guard for web
admin guard for api
I want is
admin guard *
I need just create one but can use in web or api
It can?
Beta Was this translation helpful? Give feedback.
All reactions