SearchableScope
class SearchableScope implements Scope
Global scope that adds batch search macros to the query builder.
Methods
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.
at line 34
void
extend(Builder $builder)
Extend the query builder with the needed functions.
at line 75
static protected mixed
getScoutConfig(string $key, mixed $default = null)
Get a Scout configuration value.
at line 85
static protected void
dispatchEvent(object $event)
Dispatch an event through the event dispatcher.