src/Criteria/SimpleCriteria.php
public function apply($query)
	{
		$query->where(function($query) {
			foreach (['where', 'orWhere', 'whereIn', 'orWhereIn'] as $method) {
				foreach ($this->{$method.'s'} as $params) {
					call_user_func_array([$query, $method], $params);
				}
			}
		});
	}
public function apply($query)
	{
		$query->where(function($query) {
			foreach (['where', 'orWhere', 'whereIn', 'orWhereIn'] as $method) {
				foreach ($this->{$method.'s'} as $params) {
					call_user_func_array([$query, $method], $params);
				}
			}
		});
	}
@param  \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query

@return void