src/AbstractRepository.php
public function getByAttributes(array $attributes)
	{
		if (count($attributes) < 1) {
			throw new \InvalidArgumentException('Cannot getByAttributes with an empty array');
		}

		return $this->fetchMany($this->newAttributesQuery($attributes));
	}
public function getByAttributes(array $attributes)
	{
		if (count($attributes) < 1) {
			throw new \InvalidArgumentException('Cannot getByAttributes with an empty array');
		}

		return $this->fetchMany($this->newAttributesQuery($attributes));
	}
Get a specific row by attributes in the repository.

@param  array $attributes

@return mixed

@throws \InvalidArgumentException if $attributes is empty