Baum\Node::getAncestorsWithoutRoot PHP Метод

getAncestorsWithoutRoot() публичный Метод

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
Результат Illuminate\Database\Eloquent\Collection
    public function getAncestorsWithoutRoot($columns = ['*'])
    {
        return $this->ancestors()->withoutRoot()->get($columns);
    }