Write down what result you expect and what's your tables, models setup
The setup is the composite pattern, only the leaves can appear in multiple trees. For this reason there is a pivot table describing the many to many relationship.
I'd like to be able to get the top of the composite hierarchy, via an essentially in order recursive descent.
Throw an example as composite pattern doesn't clear things up.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community