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 mixed
getScoutConfig(string $key, mixed $default = null)

Get a Scout configuration value.

static void
dispatchEvent(object $event)

Dispatch an event through the event dispatcher.

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 75
static protected mixed getScoutConfig(string $key, mixed $default = null)

Get a Scout configuration value.

Parameters

string $key
mixed $default

Return Value

mixed

at line 85
static protected void dispatchEvent(object $event)

Dispatch an event through the event dispatcher.

Parameters

object $event

Return Value

void