trait HasQuery (View source)

Properties

protected Builder|Closure|null $query
protected string|Closure|null $inverseRelationship
protected Closure|null $getRelationshipUsing
protected Closure[] $queryScopes

Methods

query(Builder|Closure|null $query)

No description

modifyQueryUsing(Closure $callback)

No description

relationship(Closure|null $relationship)

No description

inverseRelationship(string|Closure|null $name)

No description

Builder
applyQueryScopes(Builder $query)

No description

Relation
getQuery()

No description

Builder|null
getRelationshipQuery()

No description

Relation
selectPivotDataInQuery(Relation $query)

No description

Builder|null
getRelationship()

No description

string|null
getInverseRelationship()

No description

Builder
getInverseRelationshipFor(Model $record)

No description

Details

HasQuery query(Builder|Closure|null $query)

No description

Parameters

Builder|Closure|null $query

Return Value

HasQuery

HasQuery modifyQueryUsing(Closure $callback)

No description

Parameters

Closure $callback

Return Value

HasQuery

HasQuery relationship(Closure|null $relationship)

No description

Parameters

Closure|null $relationship

Return Value

HasQuery

HasQuery inverseRelationship(string|Closure|null $name)

No description

Parameters

string|Closure|null $name

Return Value

HasQuery

protected Builder applyQueryScopes(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

Relation getQuery()

No description

Return Value

Relation

Builder|null getRelationshipQuery()

No description

Return Value

Builder|null

Relation selectPivotDataInQuery(Relation $query)

No description

Parameters

Relation $query

Return Value

Relation

Builder|null getRelationship()

No description

Return Value

Builder|null

string|null getInverseRelationship()

No description

Return Value

string|null

Builder getInverseRelationshipFor(Model $record)

No description

Parameters

Model $record

Return Value

Builder