trait GetsRelationAggregates

Properties

array|null $relationAggregate

Methods

relationAggregate(string $relation, string $column, string $function, Closure|null $constrain = null)

No description

countRelation(string $relation, Closure|null $constrain = null)

No description

sumRelation(string $relation, string $column, Closure|null $constrain = null)

No description

avgRelation(string $relation, string $column, Closure|null $constrain = null)

No description

minRelation(string $relation, string $column, Closure|null $constrain = null)

No description

maxRelation(string $relation, string $column, Closure|null $constrain = null)

No description

array|null
getRelationAggregate()

No description

Details

GetsRelationAggregates relationAggregate(string $relation, string $column, string $function, Closure|null $constrain = null)

Parameters

string $relation
string $column
string $function
Closure|null $constrain

Return Value

GetsRelationAggregates

GetsRelationAggregates countRelation(string $relation, Closure|null $constrain = null)

Parameters

string $relation
Closure|null $constrain

Return Value

GetsRelationAggregates

GetsRelationAggregates sumRelation(string $relation, string $column, Closure|null $constrain = null)

Parameters

string $relation
string $column
Closure|null $constrain

Return Value

GetsRelationAggregates

GetsRelationAggregates avgRelation(string $relation, string $column, Closure|null $constrain = null)

Parameters

string $relation
string $column
Closure|null $constrain

Return Value

GetsRelationAggregates

GetsRelationAggregates minRelation(string $relation, string $column, Closure|null $constrain = null)

Parameters

string $relation
string $column
Closure|null $constrain

Return Value

GetsRelationAggregates

GetsRelationAggregates maxRelation(string $relation, string $column, Closure|null $constrain = null)

Parameters

string $relation
string $column
Closure|null $constrain

Return Value

GetsRelationAggregates

array|null getRelationAggregate()

Return Value

array|null