Roles & Permissions Applied Using Seeder – Update Not Reflecting #2873
Unanswered
ajaytusavada
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I assigned permissions to a role using a seeder in Laravel, but whenever the admin changes the permissions of that role later, those changes are not reflected or working for the users assigned to that role; only the old permissions from the seeder continue to work.
Expected Behavior
The roles and permissions should be applied correctly, and any updates should be visible to users based on their roles.
Actual Behavior
After running the seeder, roles and permissions are applied, but updates do not seem to work as intended. The system does not reflect changes based on the applied roles.
Seeder Code:
Here’s the seeder code that applies the roles and permissions:
Beta Was this translation helpful? Give feedback.
All reactions