public function delete($id) { try { return $this->model->destroy($id); } catch (Exception $e) { } throw new RepositoryException('Could not delete the record. You must delete all relationships before proceeding.'); }