protected function createSearchClause(Builder $query, $param, $column, $value, $boolean = 'and')
    {
        if ($param === 'query') {
            $query->where($this->appendTableName($column), self::$searchOperator, '%' . $value . '%', $boolean);
        }
        elseif (is_array($value)) {
            $query->whereIn($this->appendTableName($column), $value, $boolean);
        }
        else {
            $query->where($this->appendTableName($column), '=', $value, $boolean);
        }
    }
protected function createSearchClause(Builder $query, $param, $column, $value, $boolean = 'and')
    {
        if ($param === 'query') {
            $query->where($this->appendTableName($column), self::$searchOperator, '%' . $value . '%', $boolean);
        }
        elseif (is_array($value)) {
            $query->whereIn($this->appendTableName($column), $value, $boolean);
        }
        else {
            $query->where($this->appendTableName($column), '=', $value, $boolean);
        }
    }
protected function createSearchClause ( Builder $ query , $ param , $ column , $ value , $ boolean = 'and' ) { if ( $ param === 'query' ) { $ query -> where ( $ this -> appendTableName ( $ column ) , self :: $ searchOperator , '%' . $ value . '%' , $ boolean ) ; } elseif ( is_array ( $ value ) ) { $ query -> whereIn ( $ this -> appendTableName ( $ column ) , $ value , $ boolean ) ; } else { $ query -> where ( $ this -> appendTableName ( $ column ) , '=' , $ value , $ boolean ) ; } }
Add a search where clause to the query.

@param Builder $query
@param string  $param
@param string  $column
@param string  $value
@param string  $boolean
Add a search where clause to the query .