Skip to content

Check role before delete #1821

Answered by drbyte
Logical-Developer asked this question in Q&A
Discussion options

You must be logged in to vote

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();

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants