json(['data' => DeploymentEnvironment::withCount(['targets', 'pipelines', 'releases'])->get()]); } public function releases(): JsonResponse { return response()->json(['data' => DeploymentRelease::with(['environment', 'steps'])->latest()->paginate()]); } }