The belongsToMany doesn't work on hybrid relationships.
Doc: https://laravel.com/docs/10.x/eloquent-relationships#many-to-many
The relations must be stored in an array in the MongoDB collection only, not in an SQL pivot table.
The belongsToMany doesn't work on hybrid relationships.
Doc: https://laravel.com/docs/10.x/eloquent-relationships#many-to-many
The relations must be stored in an array in the MongoDB collection only, not in an SQL pivot table.