diff --git a/src/Versionable.php b/src/Versionable.php index 4504e19..98fa4aa 100644 --- a/src/Versionable.php +++ b/src/Versionable.php @@ -223,7 +223,7 @@ public function shouldBeVersioning(): bool return call_user_func([$this, 'shouldVersioning']); } - if ($this->versions()->count() === 0 || Arr::hasAny($this->getDirty(), $this->versionable)) { + if ($this->versions()->count() === 0 || Arr::hasAny($this->getDirty(), array_keys($this->getVersionableAttributes()))) { return true; }