public function scopeSuggestionsFor($query, string $type, array $tags)
    {
        return (new SuggestionQuery($query))->type($type)->apply($tags);
    }
public function scopeSuggestionsFor($query, string $type, array $tags)
    {
        return (new SuggestionQuery($query))->type($type)->apply($tags);
    }
public function scopeSuggestionsFor ( $ query , string $ type , array $ tags ) { return ( new SuggestionQuery ( $ query ) ) -> type ( $ type ) -> apply ( $ tags ) ; }
Returns suggestions for a given tags and type.

@param  Illuminate\Database\Eloquent\Builder $query
@param  string $type
@param  array $tags

@return Illuminate\Database\Eloquent\Builder
Returns suggestions for a given tags and type .