BelongsToMany
class BelongsToMany extends Relation (View source)
Methods
void __construct(Builder $query, Model $parent, string $table, string $foreignKey, string $otherKey, string $relationName = null) Create a new belongs to many relationship instance. void addConstraints() Set the base constraints on the relation query. void addEagerConstraints(array $models) Set the constraints for an eager load of the relation. array initRelation(array $models, string $relation) Initia