-
--
-- Error: Spatie\Permission\Exceptions\PermissionDoesNotExist with message 'There is no permission named |
Beta Was this translation helpful? Give feedback.
Answered by
erikn69
Dec 28, 2022
Replies: 1 comment 1 reply
-
It is a expected behaivor
that is terrible just to count you bring all the data Just return Permission::whereName($permission_name)->count() > 0; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pcboii
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is a expected behaivor
that is terrible just to count you bring all the data
Just