diff --git a/src/Concerns/SyncsPublishing.php b/src/Concerns/SyncsPublishing.php index 1b65440..679a9d1 100644 --- a/src/Concerns/SyncsPublishing.php +++ b/src/Concerns/SyncsPublishing.php @@ -57,7 +57,7 @@ public function syncPublishingFrom(Publishable&Model $from): void $this->save(); if ($from->isPublished() && $this->{$this->shouldDeleteColumn()}) { - $this->withoutHandler('deleting', fn () => $this->delete(), [static::class]); + $this->withoutHandler('deleting', fn () => $this->delete(), [SyncsPublishing::class]); } }