Relation
class Relation (View source)
Methods
void __construct(Builder $query, Model $parent) Create a new relation 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) Initialize the relation on a set of models. array match(array $models, Collection $results, string $relation) Match the eagerly lo