Baum\Node::getAncestorsWithoutRoot PHP Méthode

getAncestorsWithoutRoot() public méthode

Get all the ancestor chain from the database excluding the current node and the root node (from the current node's perspective).
public getAncestorsWithoutRoot ( array $columns = ['*'] ) : Illuminate\Database\Eloquent\Collection
$columns array
Résultat Illuminate\Database\Eloquent\Collection
    public function getAncestorsWithoutRoot($columns = ['*'])
    {
        return $this->ancestors()->withoutRoot()->get($columns);
    }