Documentation

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

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
Return values
void

Search results