-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Base table or view not found: 1146 Table 'role_user' doesn't exist #2590
Labels
Comments
drbyte
changed the title
Laravel spatie teams permission is not working properly.
Base table or view not found: 1146 Table 'role_user' doesn't exist
Jan 9, 2024
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" |
Duplicate of #2650 |
Potential FIX: If you have |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using spatie version 5. Whenever I assign new role using this function $user->assignRole('Admin') but I am getting an exception that
Base table or view not found: 1146 Table 'cryo_renewal.role_user' doesn't exist (Connection: mysql, SQL: delete from
role_user
whererole_user
.user_id
= 1) in spatie laravel problem. What is that error can anyone explain.The text was updated successfully, but these errors were encountered: