laravel / 5.2.31 / api / 5.2 / illuminate / database / eloquent / scope.html /

Scope

interface Scope (View source)

Methods

void apply(Builder $builder, Model $model)

Apply the scope to a given Eloquent query builder.

Details

void apply(Builder $builder, Model $model)

Apply the scope to a given Eloquent query builder.

Parameters

Builder $builder
Model $model

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Database/Eloquent/Scope.html