src/AbstractRepository.php
public function findByAttributes(array $attributes)
	{
		$query = $this->newAttributesQuery($attributes);

		if (empty($attributes)) {
			if ($this->throwExceptions) {
				throw $this->getNotFoundException($query);
			}

			return null;
		}

		return $this->fetchSingle($query);
	}
public function findByAttributes(array $attributes)
	{
		$query = $this->newAttributesQuery($attributes);

		if (empty($attributes)) {
			if ($this->throwExceptions) {
				throw $this->getNotFoundException($query);
			}

			return null;
		}

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

@param  array $attributes

@return mixed