id() ?? 0); if ($userId <= 0) { return $this->error('Unauthorized.', Response::HTTP_UNAUTHORIZED); } $payload = $this->service->buildForUser($userId); return $this->success([ 'profile' => new ProfileIconResource($payload), ]); } }