trait CanAggregateRelatedModels (View source)

Properties

protected string|Closure|null $columnToAvg
protected string|Closure|null $relationshipToAvg
protected string|array|Closure|null $relationshipsToCount
protected string|array|Closure|null $relationshipsToExistenceCheck
protected string|Closure|null $columnToMax
protected string|Closure|null $relationshipToMax
protected string|Closure|null $columnToMin
protected string|Closure|null $relationshipToMin
protected string|Closure|null $columnToSum
protected string|Closure|null $relationshipToSum

Methods

avg(string|Closure|null $relationship, string|Closure|null $column)

No description

counts(string|array|Closure|null $relationships)

No description

exists(string|array|Closure|null $relationships)

No description

max(string|Closure|null $relationship, string|Closure|null $column)

No description

min(string|Closure|null $relationship, string|Closure|null $column)

No description

sum(string|Closure|null $relationship, string|Closure|null $column)

No description

string|null
getColumnToAvg()

No description

string|null
getRelationshipToAvg()

No description

string|array|null
getRelationshipsToCount()

No description

string|array|null
string|null
getColumnToMax()

No description

string|null
getRelationshipToMax()

No description

string|null
getColumnToMin()

No description

string|null
getRelationshipToMin()

No description

string|null
getColumnToSum()

No description

string|null
getRelationshipToSum()

No description

Details

CanAggregateRelatedModels avg(string|Closure|null $relationship, string|Closure|null $column)

No description

Parameters

string|Closure|null $relationship
string|Closure|null $column

Return Value

CanAggregateRelatedModels

CanAggregateRelatedModels counts(string|array|Closure|null $relationships)

No description

Parameters

string|array|Closure|null $relationships

Return Value

CanAggregateRelatedModels

CanAggregateRelatedModels exists(string|array|Closure|null $relationships)

No description

Parameters

string|array|Closure|null $relationships

Return Value

CanAggregateRelatedModels

CanAggregateRelatedModels max(string|Closure|null $relationship, string|Closure|null $column)

No description

Parameters

string|Closure|null $relationship
string|Closure|null $column

Return Value

CanAggregateRelatedModels

CanAggregateRelatedModels min(string|Closure|null $relationship, string|Closure|null $column)

No description

Parameters

string|Closure|null $relationship
string|Closure|null $column

Return Value

CanAggregateRelatedModels

CanAggregateRelatedModels sum(string|Closure|null $relationship, string|Closure|null $column)

No description

Parameters

string|Closure|null $relationship
string|Closure|null $column

Return Value

CanAggregateRelatedModels

string|null getColumnToAvg()

No description

Return Value

string|null

string|null getRelationshipToAvg()

No description

Return Value

string|null

string|array|null getRelationshipsToCount()

No description

Return Value

string|array|null

string|array|null getRelationshipsToExistenceCheck()

No description

Return Value

string|array|null

string|null getColumnToMax()

No description

Return Value

string|null

string|null getRelationshipToMax()

No description

Return Value

string|null

string|null getColumnToMin()

No description

Return Value

string|null

string|null getRelationshipToMin()

No description

Return Value

string|null

string|null getColumnToSum()

No description

Return Value

string|null

string|null getRelationshipToSum()

No description

Return Value

string|null