/** * Get the user by the given key, value * * @param mixed $key * @param mixed $value * @return \App\Domain\Entities\User */ public function getBy($key, $value) { return $this->user->where($key, $value)->first(); }