From 75d4c1efe9d1ca717b12a878647dd648d36eafb9 Mon Sep 17 00:00:00 2001 From: Shahin Sheikh Date: Tue, 28 May 2024 12:23:44 +0600 Subject: [PATCH] Fixed EventLogBag modification pipe's interaction with different models --- src/Traits/LogsActivity.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Traits/LogsActivity.php b/src/Traits/LogsActivity.php index f8b1afdf..f39b668d 100644 --- a/src/Traits/LogsActivity.php +++ b/src/Traits/LogsActivity.php @@ -89,6 +89,9 @@ protected static function bootLogsActivity(): void // Reset log options so the model can be serialized. $model->activitylogOptions = null; + + // Clear pipelines for each event to avoid interact other model events; + static::$changesPipes = []; }); }); }