Метод |
Описание |
|
__call ( string $method, array $parameters ) : mixed |
Handle dynamic method calls to the relationship. |
|
__construct ( Builder $query, Model $parent ) : void |
Create a new relation instance. |
|
addConstraints ( ) : void |
Set the base constraints on the relation query. |
|
addEagerConstraints ( array $models ) : void |
Set the constraints for an eager load of the relation. |
|
createdAt ( ) : string |
Get the name of the "created at" column. |
|
getAndResetWheres ( ) : array |
Remove the original where clause set by the relationship. |
|
getBaseQuery ( ) : Builder |
Get the base query builder driving the Eloquent builder. |
|
getParent ( ) : Model |
Get the parent model of the relation. |
|
getQuery ( ) : Builder |
Get the underlying query for the relation. |
|
getRelated ( ) : Model |
Get the related model of the relation. |
|
getResults ( ) : mixed |
Get the results of the relationship. |
|
initRelation ( array $models, string $relation ) : void |
Initialize the relation on a set of models. |
|
match ( array $models, Collection $results, string $relation ) : array |
Match the eagerly loaded results to their parents. |
|
rawUpdate ( array $attributes = [] ) : integer |
Run a raw update against the base query. |
|
relatedUpdatedAt ( ) : string |
Get the name of the related model's "updated at" column. |
|
restore ( ) : integer |
Restore all of the soft deleted related models. |
|
touch ( ) : void |
Touch all of the related models for the relationship. |
|
updatedAt ( ) : string |
Get the name of the "updated at" column. |
|