From 9cc77239491e2902d7ecfef8e26940e40192368f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 2 Sep 2024 13:19:01 +1000 Subject: [PATCH] Touch parent model after mutating docs --- app/Utils/Traits/SavesDocuments.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Utils/Traits/SavesDocuments.php b/app/Utils/Traits/SavesDocuments.php index cfca896cb81e..c35aaa6bb833 100644 --- a/app/Utils/Traits/SavesDocuments.php +++ b/app/Utils/Traits/SavesDocuments.php @@ -48,6 +48,8 @@ trait SavesDocuments $is_public ))->handle(); } + + $entity->touch(); } public function saveDocument($document, $entity, $is_public = true) @@ -75,5 +77,8 @@ trait SavesDocuments null, $is_public ))->handle(); + + $entity->touch(); + } }