Baum\Node::scopeWithoutRoot PHP Method

scopeWithoutRoot() public method

Extracts first root (from the current node p-o-v) from current query expression.
public scopeWithoutRoot ( $query ) : Builder
return Illuminate\Database\Query\Builder
    public function scopeWithoutRoot($query)
    {
        return $this->scopeWithoutNode($query, $this->getRoot());
    }