src/Criteria/SearchCriteria.php
public function apply($query)
	{
		$method = $this->logic === static::LOGIC_AND ? 'where' : 'orWhere';

		$query->where(function($query) use($method) {
			$value = '%'.str_replace(' ', '%', $this->search).'%';
			foreach ($this->columns as $column) {
				$query->$method($column, 'like', $value);
			}
		});
	}
public function apply($query)
	{
		$method = $this->logic === static::LOGIC_AND ? 'where' : 'orWhere';

		$query->where(function($query) use($method) {
			$value = '%'.str_replace(' ', '%', $this->search).'%';
			foreach ($this->columns as $column) {
				$query->$method($column, 'like', $value);
			}
		});
	}
@param  \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query

@return void