Corcel\PostBuilder::status PHP Method

status() public method

Get only posts with a custom status
public status ( string $postStatus ) : PostBuilder
$postStatus string
return PostBuilder
    public function status($postStatus)
    {
        return $this->where('post_status', $postStatus);
    }