protected function getFightersByArea()
    {
        $areas = $this->settings->fightingAreas;
        $fighters = $this->getFighters();   // Get Competitor or Team Objects
        $fighterByEntity = $this->getFightersByEntity($fighters);   // Chunk it by entities (Fede, Assoc, Club,...)
        $fightersWithBye = $this->adjustFightersGroupWithByes($fighters, $fighterByEntity);     // Fill with Byes
        return $fightersWithBye->chunk(count($fightersWithBye) / $areas);   // Chunk user by areas
    }
protected function getFightersByArea()
    {
        $areas = $this->settings->fightingAreas;
        $fighters = $this->getFighters();   // Get Competitor or Team Objects
        $fighterByEntity = $this->getFightersByEntity($fighters);   // Chunk it by entities (Fede, Assoc, Club,...)
        $fightersWithBye = $this->adjustFightersGroupWithByes($fighters, $fighterByEntity);     // Fill with Byes
        return $fightersWithBye->chunk(count($fightersWithBye) / $areas);   // Chunk user by areas
    }
protected function getFightersByArea ( ) { $ areas = $ this -> settings -> fightingAreas ; $ fighters = $ this -> getFighters ( ) ; // Get Competitor or Team Objects $ fighterByEntity = $ this -> getFightersByEntity ( $ fighters ) ; // Chunk it by entities (Fede, Assoc, Club,...) $ fightersWithBye = $ this -> adjustFightersGroupWithByes ( $ fighters , $ fighterByEntity ) ; // Fill with Byes return $ fightersWithBye -> chunk ( count ( $ fightersWithBye ) / $ areas ) ; // Chunk user by areas }
Group Fighters by area.
Here is where we fill with empty fighters

@throws TreeGenerationException

@return Collection
Group Fighters by area . Here is where we fill with empty fighters