Have a look to this doc https://laravel.com/docs/8.x/eloquent-relationships#many-to-many
and create a pivot table between parents & children
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi all,
Wondering if anyone could assist with the following. We are currently working on a content taxonomy which allows us to group our content by 'topics' or 'categories'. We have a flat taxonomy in Excel at the moment as per:

We've tried a couple of ways to implement this in some kind of relationship but currently struggling. Ultimately we need to be able to query and update children with multiple parents. There's very little resource around this as most child resources have a single parent.
Has anyone come across this before and how we might achieve this?
TIA
Please or to participate in this conversation.