I need to create a Many to Many relationship in Laravel.

The documentation uses BelongsToMany in both classes. This creates a list of IDs (strings) in both collections.

But I don’t need the list in both because it’s a Many to Zilion relation. So, The list make sense on the child collection, but not in the parent. The parent should look their childs in a similar way of a HasMany relationship, querying all documents that have his ID in the array of IDs.

I think that create this type of relationship on Laravel is important to help us to create optimized schemas.