HasMany
class HasMany extends HasOneOrMany (View source)
Methods
void __construct(Builder $query, Model $parent, string $foreignKey, string $localKey) Create a new has one or many relationship instance. from HasOneOrMany void addConstraints() Set the base constraints on the relation query. from HasOneOrMany void addEagerConstraints(array $models) Set the constraints for an eager load of the relation. from HasOneOrMany array initRelation(array $models, string $relation) Initial