diff --git a/src/Moderatable.php b/src/Moderatable.php index a4bd65f..cd6b4d9 100644 --- a/src/Moderatable.php +++ b/src/Moderatable.php @@ -62,7 +62,7 @@ public static function postpone($id) public function markApproved() { $new = (new static)->newQueryWithoutScope(new ModerationScope())->approve($this->id); - return $this->setRawAttributes($new->attributesToArray()); + return $this->setRawAttributes($new->attributes); } /** @@ -73,7 +73,7 @@ public function markApproved() public function markRejected() { $new = (new static)->newQueryWithoutScope(new ModerationScope())->reject($this->id); - return $this->setRawAttributes($new->attributesToArray()); + return $this->setRawAttributes($new->attributes); } /** @@ -84,7 +84,7 @@ public function markRejected() public function markPostponed() { $new = (new static)->newQueryWithoutScope(new ModerationScope())->postpone($this->id); - return $this->setRawAttributes($new->attributesToArray()); + return $this->setRawAttributes($new->attributes); } /** @@ -95,7 +95,7 @@ public function markPostponed() public function markPending() { $new = (new static)->newQueryWithoutScope(new ModerationScope())->pend($this->id); - return $this->setRawAttributes($new->attributesToArray()); + return $this->setRawAttributes($new->attributes); } /**