src/Factory.php
public function route(string $name, string $default = '/'): UrlGeneratorContract
    {
        // Boot the extension.
        ! $this->booted() && $this->app->make(LoadExtension::class)->bootstrap($this->app);

        if (! isset($this->routes[$name])) {

            // All route should be manage via `orchestra/extension::handles.{name}`
            // config key, except for orchestra/foundation.
            $key = "orchestra/extension::handles.{$name}";

            $prefix = $this->app->make('config')->get($key, $default);

            $this->routes[$name] = $this->app->make('orchestra.extension.url')->handle($prefix);
        }

        return $this->routes[$name];
    }
public function route(string $name, string $default = '/'): UrlGeneratorContract
    {
        // Boot the extension.
        ! $this->booted() && $this->app->make(LoadExtension::class)->bootstrap($this->app);

        if (! isset($this->routes[$name])) {

            // All route should be manage via `orchestra/extension::handles.{name}`
            // config key, except for orchestra/foundation.
            $key = "orchestra/extension::handles.{$name}";

            $prefix = $this->app->make('config')->get($key, $default);

            $this->routes[$name] = $this->app->make('orchestra.extension.url')->handle($prefix);
        }

        return $this->routes[$name];
    }
Get extension route handle.

@param  string   $name
@param  string   $default

@return \Orchestra\Contracts\Extension\UrlGenerator