interface ScopeInterface implements Scope (View source)

deprecated since version 5.2. Use Illuminate\Database\Eloquent\Scope.

Methods

void
apply(Builder $builder, Model $model)

Apply the scope to a given Eloquent query builder.

from Scope

Details

void apply(Builder $builder, Model $model)

Apply the scope to a given Eloquent query builder.

Parameters

Builder $builder
Model $model

Return Value

void