I got the error when I assigned permission to the role by using Spatie permission with Laravel 10 the error is like this:
There is no permission named
2
for guardweb
.
Can anyone help me?
I got the error when I assigned permission to the role by using Spatie permission with Laravel 10 the error is like this:
There is no permission named
2
for guardweb
.
Can anyone help me?
2
Answers
try switching to old version of spatie permissions
you are probably doing this
Replace with this code
and this is the link where from you can get help
https://spatie.be/docs/laravel-permission/v6/basic-usage/role-permissions#content-assigning-roles