src/Models/Tree.php
public function getParents($columns = ['*'])
	{
		$columns = $this->formatColumns($columns);
		$result = $this->newCollection();
		$node = $this;
		while(!empty($node->getParentKey()))
		{
			$node = $this->getNode($node->getParentKey(), $columns);
			$result[] = $node;
		}
		return $result;
	}
public function getParents($columns = ['*'])
	{
		$columns = $this->formatColumns($columns);
		$result = $this->newCollection();
		$node = $this;
		while(!empty($node->getParentKey()))
		{
			$node = $this->getNode($node->getParentKey(), $columns);
			$result[] = $node;
		}
		return $result;
	}
获取所匹配的祖先Nodes

@return array     返回祖先