src/Franzose/ClosureTable/Models/Entity.php
public function getChildren(array $columns = ['*'])
    {
        if ($this->hasChildrenRelation()) {
            $result = $this->getRelation($this->getChildrenRelationIndex());
        } else {
            $result = $this->children()->get($columns);
        }

        return $result;
    }
public function getChildren(array $columns = ['*'])
    {
        if ($this->hasChildrenRelation()) {
            $result = $this->getRelation($this->getChildrenRelationIndex());
        } else {
            $result = $this->children()->get($columns);
        }

        return $result;
    }
public function getChildren ( array $ columns = [ '*' ] ) { if ( $ this -> hasChildrenRelation ( ) ) { $ result = $ this -> getRelation ( $ this -> getChildrenRelationIndex ( ) ) ; } else { $ result = $ this -> children ( ) -> get ( $ columns ) ; } return $ result ; }
Retrieves all children of a model.

@param array $columns
@return \Franzose\ClosureTable\Extensions\Collection
Retrieves all children of a model .