class SearchableScope implements Scope

Global scope that adds batch search macros to the query builder.

Methods

void
apply(Builder $builder, Model $model)

Apply the scope to a given Eloquent query builder.

void
extend(Builder $builder)

Extend the query builder with the needed functions.

static void
dispatchEvent(string $event, Collection $models)

Dispatch an event when the dispatcher has listeners for it.

Details

at line 26
void apply(Builder $builder, Model $model)

Apply the scope to a given Eloquent query builder.

Parameters

Builder $builder
Model $model

Return Value

void

at line 34
void extend(Builder $builder)

Extend the query builder with the needed functions.

Parameters

Builder $builder

Return Value

void

at line 80
static protected void dispatchEvent(string $event, Collection $models)

Dispatch an event when the dispatcher has listeners for it.

Parameters

string $event
Collection $models

Return Value

void