userService->getPublicProfile($user->id); if ($profileData === null) { return $this->error('user.not_found', 404); } return $this->success('user.profile_success', $profileData); } }