Skip to content
Discussion options

You must be logged in to vote

Should I create un belongsTo relation beetween roles() relation and Team Model?

If you need that, Yes,
I have a belongsTo relation between the User and Team model, and I only needed that

In other words : if I have a team_id = 6 in my 'model_has_roles' table, how can I access to the Team name with id = 6.

Also, you could try with join on that relation

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@samuel-ginot
Comment options

@samuel-ginot
Comment options

@erikn69
Comment options

@erikn69
Comment options

Answer selected by samuel-ginot
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants