public function isPublished()
    {
        return ($this->status >= Node::PUBLISHED)
        || ($this->status >= Node::PENDING && $this->published_at <= Carbon::now());
    }
public function isPublished()
    {
        return ($this->status >= Node::PUBLISHED)
        || ($this->status >= Node::PENDING && $this->published_at <= Carbon::now());
    }
public function isPublished ( ) { return ( $ this -> status >= Node :: PUBLISHED ) || ( $ this -> status >= Node :: PENDING && $ this -> published_at <= Carbon :: now ( ) ) ; }
Checks if the node is published

@return bool
Checks if the node is published