/** * Retrieve a user by their unique identifier. * use stored procedure * * @param mixed $identifier * @return \Illuminate\Auth\UserInterface|null */ public function retrieveById($identifier) { $user = $this->user->getUser($identifier); if (!is_null($user)) { return new GithubUser((array) $user); } }
/** * Get a specific user. * The search if by the id of the user. * * @param $id * @return mixed */ public function getUserById($id) { return $this->repository->getUser($id); }