Skip to content

Commit 78d2569

Browse files
authored
Added markAsPending to Publishable trait
1 parent 0f3ff2d commit 78d2569

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)