Baum\Node::getAncestorsAndSelfWithoutRoot PHP 메소드

getAncestorsAndSelfWithoutRoot() 공개 메소드

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