Baum\Node::ancestors PHP Method

ancestors() public method

Instance scope which targets all the ancestor chain nodes excluding the current one.
public ancestors ( ) : Builder
return Illuminate\Database\Eloquent\Builder
    public function ancestors()
    {
        return $this->ancestorsAndSelf()->withoutSelf();
    }