Answer the question
In order to leave comments, you need to log in
How to organize such a hierarchy in Laravel?
There are the following tables:
-refcodes (id)
-promos (id)
-refcodes_promos (refcode_id, promo_id)
The third one is intermediate, linked via
belongsToMany »
And finally display the following hierarchy:
Refcode 1
- promo 1
- promo2
- promo3
Refcode 2
- promo 2 - promo
4 - promo
5
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question