src/ScoutEngine.php
protected function filters(Builder $builder)
    {
        return collect($builder->wheres)->map(function ($value, $key) {
            return ['match_phrase' => [$key => $value]];
        })->values()->all();
    }
protected function filters(Builder $builder)
    {
        return collect($builder->wheres)->map(function ($value, $key) {
            return ['match_phrase' => [$key => $value]];
        })->values()->all();
    }
protected function filters ( Builder $ builder ) { return collect ( $ builder -> wheres ) -> map ( function ( $ value , $ key ) { return [ 'match_phrase' => [ $ key => $ value ] ] ; } ) -> values ( ) -> all ( ) ; }
Get the filter array for the query.
@param  Builder  $builder
@return array
Get the filter array for the query .