Check role before delete #1821
Answered
by
drbyte
Logical-Developer
asked this question in
Q&A
-
Hi |
Beta Was this translation helpful? Give feedback.
Answered by
drbyte
Aug 22, 2021
Replies: 1 comment
-
I just added this to the docs for clarity: // count the number of permissions assigned to a role
count($role->permissions);
// or
$role->permissions->count(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Logical-Developer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just added this to the docs for clarity: