src/RouteCollector.php
public function addGroup(string $name, string $prefix = '', array $middlewares = [])
    {
        $this->groups[$name] = [$prefix, $middlewares];
    }
public function addGroup(string $name, string $prefix = '', array $middlewares = [])
    {
        $this->groups[$name] = [$prefix, $middlewares];
    }
public function addGroup ( string $ name , string $ prefix = '' , array $ middlewares = [ ] ) { $ this -> groups [ $ name ] = [ $ prefix , $ middlewares ] ; }
Add group for routes to collection.

@param string $name
@param string $prefix
@param array $middlewares
Add group for routes to collection .