diff --git a/src/Concerns/IsPublishable.php b/src/Concerns/IsPublishable.php index 7d3b80b..bda45fe 100644 --- a/src/Concerns/IsPublishable.php +++ b/src/Concerns/IsPublishable.php @@ -139,13 +139,13 @@ public function isNotPublished(): bool public function wasPublished(): bool { - return $this->wasChanged($this->workflowColumn()) + return ($this->wasChanged($this->workflowColumn()) || $this->wasRecentlyCreated) && $this->getOriginal($this->workflowColumn()) === $this->publishedState(); } public function wasUnpublished(): bool { - return $this->wasChanged($this->workflowColumn()) + return ($this->wasChanged($this->workflowColumn()) || $this->wasRecentlyCreated) && $this->getOriginal($this->workflowColumn()) !== $this->publishedState(); }