BelongsTo::update()

mixed update(array $attributes) Update the parent model on the relationship. Parameters array $attributes Return Value mixed

BelongsTo::touch()

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

BelongsTo::relatedUpdatedAt()

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

BelongsTo::rawUpdate()

int rawUpdate(array $attributes = array()) Run a raw update against the base query. Parameters array $attributes Return Value int

BelongsTo::noConstraints()

static mixed noConstraints(Closure $callback) Run a callback with constraints disabled on the relation. Parameters Closure $callback Return Value mixed

BelongsTo::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

BelongsTo::match()

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

BelongsTo::initRelation()

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

BelongsTo::getResults()

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

BelongsTo::getRelationQueryForSelfRelation()

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