Baum\Node::getAncestorsAndSelfWithoutRoot PHP Méthode

getAncestorsAndSelfWithoutRoot() public méthode

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
Résultat Illuminate\Database\Eloquent\Collection
    public function getAncestorsAndSelfWithoutRoot($columns = ['*'])
    {
        return $this->ancestorsAndSelf()->withoutRoot()->get($columns);
    }