protected function handleRoutes(Router $router, $config = [])
    {
        if ($this->app->routesAreCached() === false) {
            $router->group(array_merge([
                'namespace' => $this->namespace,
            ], $config), function (Router $router) {
                require __DIR__.'/../routes/web.php';
            });
        }
    }
protected function handleRoutes(Router $router, $config = [])
    {
        if ($this->app->routesAreCached() === false) {
            $router->group(array_merge([
                'namespace' => $this->namespace,
            ], $config), function (Router $router) {
                require __DIR__.'/../routes/web.php';
            });
        }
    }
protected function handleRoutes ( Router $ router , $ config = [ ] ) { if ( $ this -> app -> routesAreCached ( ) === false ) { $ router -> group ( array_merge ( [ 'namespace' => $ this -> namespace , ] , $ config ) , function ( Router $ router ) { require __DIR__ . '/../routes/web.php' ; } ) ; } }
register routes.

@param \Illuminate\Routing\Router $router
@param array $config
register routes .