interface ScopeInterface (View source)

Methods

void
apply(Builder $builder)

Apply the scope to a given Eloquent query builder.

void
remove(Builder $builder)

Remove the scope from the given Eloquent query builder.

Details

void apply(Builder $builder)

Apply the scope to a given Eloquent query builder.

Parameters

Builder $builder

Return Value

void

void remove(Builder $builder)

Remove the scope from the given Eloquent query builder.

Parameters

Builder $builder

Return Value

void