SQLSTATE[42S02]: Base table or view not found: 1146 Table 'planner_v2_be.role_user' doesn't exist

Sospeter Mong'are - Sep 9 - - Dev Community

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

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .