-
I am using "Gate :: before" and in the api.php file I am using middleware permission: access_to_all. Super Admin has no privileges assigned but using Gate expects admin to have access to everything but it is not and middleware does not let me through, why is this?
|
Beta Was this translation helpful? Give feedback.
Answered by
drucinsky
Jan 31, 2022
Replies: 1 comment
-
I repair it. I had to app()[PermissionRegistrar::class]->forgetCachedPermissions(); at the end Permission seeder. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
drucinsky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I repair it. I had to app()[PermissionRegistrar::class]->forgetCachedPermissions(); at the end Permission seeder.