public function getNode($name, $track = true, $published = true)
    {
        if ($this->withPublishedOnly($published))
        {
            $node = PublishedNode::withName($name);
        } else
        {
            $node = Node::withName($name);
        }

        $node = $node->firstOrFail();

        $this->track($track, $node);

        return $node;
    }
public function getNode($name, $track = true, $published = true)
    {
        if ($this->withPublishedOnly($published))
        {
            $node = PublishedNode::withName($name);
        } else
        {
            $node = Node::withName($name);
        }

        $node = $node->firstOrFail();

        $this->track($track, $node);

        return $node;
    }
public function getNode ( $ name , $ track = true , $ published = true ) { if ( $ this -> withPublishedOnly ( $ published ) ) { $ node = PublishedNode :: withName ( $ name ) ; } else { $ node = Node :: withName ( $ name ) ; } $ node = $ node -> firstOrFail ( ) ; $ this -> track ( $ track , $ node ) ; return $ node ; }
Returns a node by name

@param string $name
@param bool $track
@param bool $published
@return Node
Returns a node by name