/** * Apply mode delete on the repository * * @return bool */ protected function onDeleteSuccess() { try { $this->repository->delete($this->repository->getBaseTable(), $this->createFilter()); } catch (Exception $e) { Notification::error($this->getDeleteMessage(false)); $this->error($e->getMessage()); return false; } Notification::success($this->getDeleteMessage(true)); return true; }