Skip to content

Commit 97949bc

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 8403cfa + 78d2569 commit 97949bc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Traits/Publishable.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,16 @@ public function publish()
160160
}
161161
}
162162

163+
/**
164+
* Set the post to pending
165+
*
166+
* @param bool $save
167+
*/
168+
public function markAsPending()
169+
{
170+
$this->status = $this->getPendingKey();
171+
}
172+
163173
/**
164174
* Reject the post
165175
* @return void

0 commit comments

Comments
 (0)