Replies: 1 comment
-
roles is not a column, it's an another independent table, but it is using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently integrating the spatie/laravel-permission package into an existing production system that already has a roles column in the users table. This column is being used to manage basic roles in the application, such as "supervisor" or "executive", through custom logic.
Since the package documentation specifies that there shouldn't be a pre-existing roles column, I'm facing a conflict. Changing the column name across the system is complicated due to the current production environment, so I'd like to know if there's a way to configure the package to use a custom column name instead of the default roles.
Is there any way to modify the package configuration or extend the models to use a different column name for roles? If not, do you have any recommended approaches for handling this kind of situation in an existing schema?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions