Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Moderatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand Down