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

			foreach ($this->criteria as $criteria) {
				$query->whereNested(function ($query) use ($criteria) {
					$criteria->apply($query);
				}, $logic);
			}
		});
	}
public function apply($query)
	{
		$query->where(function($query) {
			$logic = ($this->logic === static::LOGIC_AND) ? 'and' : 'or';

			foreach ($this->criteria as $criteria) {
				$query->whereNested(function ($query) use ($criteria) {
					$criteria->apply($query);
				}, $logic);
			}
		});
	}
@param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query

@return void