trait CanAggregateRelatedModels (View source)

Properties

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

Methods

avg(string|array|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|array|Closure|null $relationship, string|Closure|null $column)

No description

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

No description

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

No description

string|null
getColumnToAvg()

No description

string|array|null
getRelationshipToAvg()

No description

string|array|null
getRelationshipsToCount()

No description

string|array|null
string|null
getColumnToMax()

No description

string|array|null
getRelationshipToMax()

No description

string|null
getColumnToMin()

No description

string|array|null
getRelationshipToMin()

No description

string|null
getColumnToSum()

No description

string|array|null
getRelationshipToSum()

No description

Details

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

No description

Parameters

string|array|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|array|Closure|null $relationship, string|Closure|null $column)

No description

Parameters

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

Return Value

CanAggregateRelatedModels

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

No description

Parameters

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

Return Value

CanAggregateRelatedModels

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

No description

Parameters

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

Return Value

CanAggregateRelatedModels

string|null getColumnToAvg()

No description

Return Value

string|null

string|array|null getRelationshipToAvg()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null

string|array|null getRelationshipsToCount()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null

string|array|null getRelationshipsToExistenceCheck()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null

string|null getColumnToMax()

No description

Return Value

string|null

string|array|null getRelationshipToMax()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null

string|null getColumnToMin()

No description

Return Value

string|null

string|array|null getRelationshipToMin()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null

string|null getColumnToSum()

No description

Return Value

string|null

string|array|null getRelationshipToSum()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null