src/Database/Models/Traits/AdditionalClosureScopes.php
/**
     * Retrieves query builder for all children of a model.
     *
     * @return \Soda\ClosureTable\Extensions\Collection
     */
Retrieves query builder for all children of a model.
Retrieves query builder for all children of a model .
public function collectChildren()
    {
        if ($this->hasChildrenRelation()) {
            $result = $this->getRelation($this->getChildrenRelationIndex());
        } else {
            $result = $this->children();
        }
        return $result;
    }
public function collectChildren ( ) { if ( $ this -> hasChildrenRelation ( ) ) { $ result = $ this -> getRelation ( $ this -> getChildrenRelationIndex ( ) ) ; } else { $ result = $ this -> children ( ) ; } return $ result ; }
Retrieves query builder for all children of a model.
Retrieves query builder for all children of a model .