src/SearchableTrait.php
protected function getSearchQueriesForColumn(Builder $query, $column, $relevance, array $words)
    {
        $queries = [];

        $queries[] = $this->getSearchQuery($query, $column, $relevance, $words, 15);
        $queries[] = $this->getSearchQuery($query, $column, $relevance, $words, 5, '', '%');
        $queries[] = $this->getSearchQuery($query, $column, $relevance, $words, 1, '%', '%');

        return $queries;
    }
protected function getSearchQueriesForColumn(Builder $query, $column, $relevance, array $words)
    {
        $queries = [];

        $queries[] = $this->getSearchQuery($query, $column, $relevance, $words, 15);
        $queries[] = $this->getSearchQuery($query, $column, $relevance, $words, 5, '', '%');
        $queries[] = $this->getSearchQuery($query, $column, $relevance, $words, 1, '%', '%');

        return $queries;
    }
protected function getSearchQueriesForColumn ( Builder $ query , $ column , $ relevance , array $ words ) { $ queries = [ ] ; $ queries [ ] = $ this -> getSearchQuery ( $ query , $ column , $ relevance , $ words , 15 ) ; $ queries [ ] = $ this -> getSearchQuery ( $ query , $ column , $ relevance , $ words , 5 , '' , '%' ) ; $ queries [ ] = $ this -> getSearchQuery ( $ query , $ column , $ relevance , $ words , 1 , '%' , '%' ) ; return $ queries ; }
Returns the search queries for the specified column.

@param \Illuminate\Database\Eloquent\Builder $query
@param string $column
@param float $relevance
@param array $words
@return array
Returns the search queries for the specified column .