public function disable(DestroyListener $listener, $id)
    {
        try {
            DB::transaction(function() use($id) {
                $model            = ComponentParams::where('id', $id)->first();
                $data             = $model->data;
                $data['disabled'] = true;
                $model->data      = $data;
                $this->repository->saveEntity($model);
            });

            return $listener->whenDestroySuccess();
        } catch (Exception $e) {
            Log::emergency($e);
            return $listener->whenDestroyError(['message' => $e->getMessage(), 'code' => $e->getCode()]);
        }
    }