From 8ad0fbfc818c279a762023ae1f1d47578a6c012c Mon Sep 17 00:00:00 2001 From: Sergey Zhidkov Date: Mon, 31 May 2021 18:35:23 +0300 Subject: [PATCH] forceDeleted event in postForceDelete() method --- src/Venturecraft/Revisionable/RevisionableTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Venturecraft/Revisionable/RevisionableTrait.php b/src/Venturecraft/Revisionable/RevisionableTrait.php index 0def63f..4a47d36 100644 --- a/src/Venturecraft/Revisionable/RevisionableTrait.php +++ b/src/Venturecraft/Revisionable/RevisionableTrait.php @@ -310,7 +310,7 @@ public function postForceDelete() $revision = Revisionable::newModel(); \DB::table($revision->getTable())->insert($revisions); - \Event::dispatch('revisionable.deleted', array('model' => $this, 'revisions' => $revisions)); + \Event::dispatch('revisionable.forceDeleted', array('model' => $this, 'revisions' => $revisions)); } }