DEV Community

Sospeter Mong'are
Sospeter Mong'are

Posted on

1

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)

Cloudinary image

Video API: manage, encode, and optimize for any device, channel or network condition. Deliver branded video experiences in minutes and get deep engagement insights.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay