src/Http/UrlGenerator.php
public function addCollection($key, RouteCollection $routes, $prefix = null)
    {
        $this->routes[$key] = new RouteCollectionUrlGenerator(
            $this->app->url($prefix),
            $routes
        );

        return $this;
    }
public function addCollection($key, RouteCollection $routes, $prefix = null)
    {
        $this->routes[$key] = new RouteCollectionUrlGenerator(
            $this->app->url($prefix),
            $routes
        );

        return $this;
    }
public function addCollection ( $ key , RouteCollection $ routes , $ prefix = null ) { $ this -> routes [ $ key ] = new RouteCollectionUrlGenerator ( $ this -> app -> url ( $ prefix ) , $ routes ) ; return $ this ; }
Register a named route collection for URL generation.

@param string $key
@param RouteCollection $routes
@param string $prefix
@return static
Register a named route collection for URL generation .