laravel / 4.2.11 / api / 4.2 / illuminate / database / eloquent / scopeinterface.html /

ScopeInterface

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

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