Methods |
public
|
__construct(Builder $query, Model $parent, string $type, string $id, string $localKey): void
Create a new morph one or many relationship instance.
Create a new morph one or many relationship instance.
Overrides
|
#
|
public
|
addConstraints(): void
Set the base constraints on the relation query.
Set the base constraints on the relation query.
Overrides
|
#
|
public
|
addEagerConstraints(array $models): void
Set the constraints for an eager load of the relation.
Set the constraints for an eager load of the relation.
Overrides
|
#
|
public
|
getRelationExistenceQuery(Builder $query, Builder $parentQuery, array|mixed $columns = ['*']): Builder
Get the relationship query.
Get the relationship query.
Overrides
Overriden by
|
#
|
public
|
getQualifiedMorphType(): string
Get the foreign key "type" name.
Get the foreign key "type" name.
|
#
|
public
|
getMorphType(): string
Get the plain morph type name without the table.
Get the plain morph type name without the table.
|
#
|
public
|
getMorphClass(): string
Get the class name of the parent model.
Get the class name of the parent model.
|
#
|