Solution 1:
Potential FIX:
If you have roles() or permissions() defined inside User remove it. It's conflicting with the HasRoles.
**
Solution 2**
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
run this command it should work
Top comments (0)