HasOne::addConstraints()

void addConstraints() Set the base constraints on the relation query. Return Value void

HasOne

HasOne class HasOne 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) Initializ

HasManyThrough::__construct()

void __construct(Builder $query, Model $farParent, Model $parent, string $firstKey, string $secondKey, string $localKey) Create a new has many through relationship instance. Parameters Builder $query Model $farParent Model $parent string $firstKey string $secondKey string $localKey Return Value void

HasManyThrough::__clone()

void __clone() Force a clone of the underlying query builder when cloning. Return Value void

HasManyThrough::__call()

mixed __call(string $method, array $parameters) Handle dynamic method calls to the relationship. Parameters string $method array $parameters Return Value mixed

HasManyThrough::wrap()

string wrap(string $value) Wrap the given value with the parent query's grammar. Parameters string $value Return Value string

HasManyThrough::updatedAt()

string updatedAt() Get the name of the "updated at" column. Return Value string

HasManyThrough::touch()

void touch() Touch all of the related models for the relationship. Return Value void

HasManyThrough::simplePaginate()

Paginator simplePaginate(int $perPage = null, array $columns = array('*'), string $pageName = 'page', int|null $page = null) Paginate the given query into a simple paginator. Parameters int $perPage array $columns string $pageName int|null $page Return Value Paginator

HasManyThrough::relatedUpdatedAt()

string relatedUpdatedAt() Get the name of the related model's "updated at" column. Return Value string