src/Routing/Route.php
public static function group($prefix, Closure $callback)
    {
        $callback->call(new static());
        foreach (static::$prefixRoutes as $key => $prefixRoute) {
            $target = $prefix.$prefixRoute['target'];
            $handler = $prefixRoute['handler'];
            $name = $prefixRoute['name'];

            unset(static::$prefixRoutes[$key]);

            call_user_func_array(
                [new static(), strtolower($prefixRoute['method'])],
                [$target, $handler, $name]
            );
        }
    }
public static function group($prefix, Closure $callback)
    {
        $callback->call(new static());
        foreach (static::$prefixRoutes as $key => $prefixRoute) {
            $target = $prefix.$prefixRoute['target'];
            $handler = $prefixRoute['handler'];
            $name = $prefixRoute['name'];

            unset(static::$prefixRoutes[$key]);

            call_user_func_array(
                [new static(), strtolower($prefixRoute['method'])],
                [$target, $handler, $name]
            );
        }
    }
public static function group ( $ prefix , Closure $ callback ) { $ callback -> call ( new static ( ) ) ; foreach ( static :: $ prefixRoutes as $ key => $ prefixRoute ) { $ target = $ prefix . $ prefixRoute [ 'target' ] ; $ handler = $ prefixRoute [ 'handler' ] ; $ name = $ prefixRoute [ 'name' ] ; unset ( static :: $ prefixRoutes [ $ key ] ) ; call_user_func_array ( [ new static ( ) , strtolower ( $ prefixRoute [ 'method' ] ) ] , [ $ target , $ handler , $ name ] ) ; } }
Route Group.

@param $prefix
@param \Closure $callback
Route Group .