Replies: 1 comment 2 replies
-
Hi @GhostvOne, We could find a workaround, but its complexity depends on your use case.
Can you describe the data of this relationship in general? |
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
-
I have two models and i'm trying to get categories tree attached to the file model
1st model : "File"
2nd model : "Category"
Categories can have parents with "category_parent_id" field.
File can have multiple categories (belongsToMany).
Imagine File contain categories (1,2,3,4 )
Actually, if I take the categories collection from the file model
It returns me :
instead of
How Can I only have the first occurence, plugins with children ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions