protected function searchWhere(
        SearchableSubquery $subquery,
        ColumnCollection $columns,
        array $words,
        array $bindings
    ) {
        $operator = $this->getLikeOperator();

        $wheres = [];

        foreach ($columns as $column) {
            $wheres[] = implode(
                ' or ',
                array_fill(0, count($words), sprintf('%s %s ?', $column->getWrapped(), $operator))
            );
        }

        $where = implode(' or ', $wheres);

        $subquery->whereRaw("({$where})");

        $this->addBinding($bindings, 'select');
    }
protected function searchWhere(
        SearchableSubquery $subquery,
        ColumnCollection $columns,
        array $words,
        array $bindings
    ) {
        $operator = $this->getLikeOperator();

        $wheres = [];

        foreach ($columns as $column) {
            $wheres[] = implode(
                ' or ',
                array_fill(0, count($words), sprintf('%s %s ?', $column->getWrapped(), $operator))
            );
        }

        $where = implode(' or ', $wheres);

        $subquery->whereRaw("({$where})");

        $this->addBinding($bindings, 'select');
    }
protected function searchWhere ( SearchableSubquery $ subquery , ColumnCollection $ columns , array $ words , array $ bindings ) { $ operator = $ this -> getLikeOperator ( ) ; $ wheres = [ ] ; foreach ( $ columns as $ column ) { $ wheres [ ] = implode ( ' or ' , array_fill ( 0 , count ( $ words ) , sprintf ( '%s %s ?' , $ column -> getWrapped ( ) , $ operator ) ) ) ; } $ where = implode ( ' or ' , $ wheres ) ; $ subquery -> whereRaw ( "({$where})" ) ; $ this -> addBinding ( $ bindings , 'select' ) ; }
Apply where clauses on the subquery.

@param  \Sofa\Eloquence\Searchable\Subquery $subquery
@param  \Sofa\Eloquence\Searchable\ColumnCollection $columns
@param  array $words
@return void
Apply where clauses on the subquery .