trait OrderBy

Order by column trait

Methods

Builder|Model
applyOrderBy(string|null $namespace = null)

Apply order by to current model

Builder
scopeRandomOrder(Builder $query)

Random order query

Details

at line 25
Builder|Model applyOrderBy(string|null $namespace = null)

Apply order by to current model

Parameters

string|null $namespace

Return Value

Builder|Model

at line 36
Builder scopeRandomOrder(Builder $query)

Random order query

Parameters

Builder $query

Return Value

Builder