MorphOneOrMany::touch()

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

MorphOneOrMany::saveMany()

Traversable|array saveMany(Traversable|array $models) Attach a collection of models to the parent instance. Parameters Traversable|array $models Return Value Traversable|array

MorphOneOrMany::save()

Model save(Model $model) Attach a model instance to the parent model. Parameters Model $model Return Value Model

MorphOneOrMany::relatedUpdatedAt()

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

MorphOneOrMany::rawUpdate()

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

MorphOneOrMany::noConstraints()

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

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

MorphOneOrMany::matchOne()

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

MorphOneOrMany::matchMany()

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

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