src/Franzose/ClosureTable/Extensions/Collection.php
public function getChildrenOf($position)
    {
        if (!$this->hasChildren($position)) {
            return null;
        }

        $item = $this->get($position);
        $relation = $item->getChildrenRelationIndex();

        return $item->getRelation($relation);
    }
public function getChildrenOf($position)
    {
        if (!$this->hasChildren($position)) {
            return null;
        }

        $item = $this->get($position);
        $relation = $item->getChildrenRelationIndex();

        return $item->getRelation($relation);
    }
public function getChildrenOf ( $ position ) { if ( ! $ this -> hasChildren ( $ position ) ) { return null ; } $ item = $ this -> get ( $ position ) ; $ relation = $ item -> getChildrenRelationIndex ( ) ; return $ item -> getRelation ( $ relation ) ; }
Retrieves children relation.

@param $position
@return Collection|null
Retrieves children relation .