getRouteParam('id'); if (!$id) { throw new BadRequest(); } $this->service->subscribeToNotificationOnSuccess($id); return ResponseComposer::json(true); } }