Baum\Node::getAncestorsAndSelfWithoutRoot PHP Method

getAncestorsAndSelfWithoutRoot() public method

Get all the ancestor chain from the database including the current node but without the root node.
public getAncestorsAndSelfWithoutRoot ( array $columns = ['*'] ) : Illuminate\Database\Eloquent\Collection
$columns array
return Illuminate\Database\Eloquent\Collection
    public function getAncestorsAndSelfWithoutRoot($columns = ['*'])
    {
        return $this->ancestorsAndSelf()->withoutRoot()->get($columns);
    }