Skip to content
Discussion options

You must be logged in to vote
$role = Role::findByName('foo'); // or findById() or find()
$role->permissions->each(function ($role) {
  $role->delete();
});

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@fredsal
Comment options

@drbyte
Comment options

drbyte Jul 23, 2021
Collaborator

Answer selected by abanghendri
Comment options

You must be logged in to vote
2 replies
@abanghendri
Comment options

@drbyte
Comment options

drbyte Jul 23, 2021
Collaborator

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants