src/AbstractRepository.php
public function applyCriteria($query)
	{
		foreach ($this->defaultCriteria as $criteria) {
			$criteria->apply($query);
		}

		if (empty($this->criteria)) return;

		foreach ($this->criteria as $criteria) {
			$criteria->apply($query);
		}

		if ($this->resetCriteria) {
			$this->resetCriteria();
		}
	}
public function applyCriteria($query)
	{
		foreach ($this->defaultCriteria as $criteria) {
			$criteria->apply($query);
		}

		if (empty($this->criteria)) return;

		foreach ($this->criteria as $criteria) {
			$criteria->apply($query);
		}

		if ($this->resetCriteria) {
			$this->resetCriteria();
		}
	}
Apply the repository's criteria onto a query builder.

@param  mixed $query

@return void