How to add a new field to the model_has_role table #1749
Unanswered
BehroozBvk
asked this question in
Q&A
Replies: 1 comment
-
You can try #1782 |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
How to add a new field to the model_has_role table and override the assignRole method to fill in the new field.
In fact, I want to add a new Organization_id field to the model_has_role table and specify its value when assigning a role to the user.
I know how to add a field to migration, I just do not know how to implement it
Thanks for the tips along with the sample code.
Beta Was this translation helpful? Give feedback.
All reactions