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