Relationship many to many
i have 3 table like this :
How do I create a relationship in table model C to get data related to tables B and A? anyone can help ?
table a => id, name
table b =>id, table_a_id, name
table c => id, table_b_id, nameHow do I create a relationship in table model C to get data related to tables B and A? anyone can help ?
Solution
Take a look at my thread here:
User BelongsToMany Groups pivot table with additional "Role" field, how to select role?
I was in a similar situation. You just need to creat relation managers for Model B and Model A in Model C.
User BelongsToMany Groups pivot table with additional "Role" field, how to select role?
I was in a similar situation. You just need to creat relation managers for Model B and Model A in Model C.