Replies: 1 comment 2 replies
-
i made this, and i am not shure that is the best solution.
2.- set the first role of the relation "roles" in the HasRoles Trait.
some one that can help me to check if this is a good option or not. thanks a lot. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi, i would like to make a one of many Polymorphic Relationship
i just want to get just one role per user, and not to many.
it is posible with the One of May Relation?
o would like to make a currentRole method and get just one role and not a collection of many roles.
i would like to achieve this functionality in the relation and not in another method to filter the roles and get the first. im trying to make in the relation, but i don`t know if the "One of Many" relation could do this.
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions