Relation::morphMap()

static array morphMap(array $map = null, bool $merge = true) Set or get the morph map for polymorphic relations. Parameters array $map bool $merge Return Value array

Relation::match()

abstract array match(array $models, Collection $results, string $relation) Match the eagerly loaded results to their parents. Parameters array $models Collection $results string $relation Return Value array

Relation::initRelation()

abstract array initRelation(array $models, string $relation) Initialize the relation on a set of models. Parameters array $models string $relation Return Value array

Relation::getResults()

abstract mixed getResults() Get the results of the relationship. Return Value mixed

Relation::getRelationQuery()

Builder getRelationQuery(Builder $query, Builder $parent, array|mixed $columns = array('*')) Add the constraints for a relationship query. Parameters Builder $query Builder $parent array|mixed $columns Return Value Builder

Relation::getRelationCountQuery()

Builder getRelationCountQuery(Builder $query, Builder $parent) Add the constraints for a relationship count query. Parameters Builder $query Builder $parent Return Value Builder

Relation::getRelated()

Model getRelated() Get the related model of the relation. Return Value Model

Relation::getQuery()

Builder getQuery() Get the underlying query for the relation. Return Value Builder

Relation::getQualifiedParentKeyName()

string getQualifiedParentKeyName() Get the fully qualified parent key name. Return Value string

Relation::getParent()

Model getParent() Get the parent model of the relation. Return Value Model