DEV Community

Sospeter Mong'are
Sospeter Mong'are

Posted on

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

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)