Fixing Role Conflicts In Laravel Permissions Setup
Remove roles() and permissions() from User model to fix conflict with HasRoles. Alternatively, run php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" for a solution.
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