src/Route.php
public function addGroup(...$groups)
    {
        collect($groups)->map(function ($group) {
            $this->route['groups'][] = $group->get();
        });

        return $this;
    }
public function addGroup(...$groups)
    {
        collect($groups)->map(function ($group) {
            $this->route['groups'][] = $group->get();
        });

        return $this;
    }
public function addGroup ( ... $ groups ) { collect ( $ groups ) -> map ( function ( $ group ) { $ this -> route [ 'groups' ] [ ] = $ group -> get ( ) ; } ) ; return $ this ; }
Registers a new API endpoint group

@param Agencms\Core\Group ...$groups
@return Agencms\Core\Route
Registers a new API endpoint group