Using trait on non-user model - GuardDoesNotMatch Exception #2238
Unanswered
ShareghYusefi
asked this question in
Q&A
Replies: 1 comment
-
Set a default guard_name |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a model that needs access to roles and found #310 as a potential way of implementing this feature. However, I'm receiving the following exception:
Spatie\Permission\Exceptions\GuardDoesNotMatch
The given role or permission should use guard `` instead of ``.
Is this workaround no longer being supported?
Beta Was this translation helpful? Give feedback.
All reactions