OrderScope
in package
implements
Scope
Interfaces, Classes, Traits and Enums
- Scope
Table of Contents
- $column : mixed
- $direction : mixed
- __construct() : mixed
- apply() : void
- Apply the scope to a given Eloquent query builder.
Properties
$column
private
mixed
$column
$direction
private
mixed
$direction
Methods
__construct()
public
__construct([mixed $column = 'id' ][, mixed $direction = 'asc' ]) : mixed
Parameters
- $column : mixed = 'id'
- $direction : mixed = 'asc'
Return values
mixed —apply()
Apply the scope to a given Eloquent query builder.
public
apply(Builder $builder, Model $model) : void
Parameters
- $builder : Builder
- $model : Model