class UrlGenerator

Properties

protected array $routes
protected Application $app

Methods

__construct(Application $app)

No description

addCollection(string $key, RouteCollection $routes, string $prefix = null)

Register a named route collection for URL generation.

RouteCollectionUrlGenerator
to(string $collection)

Retrieve an URL generator instance for the given named route collection.

Details

__construct(Application $app)

Parameters

Application $app

UrlGenerator addCollection(string $key, RouteCollection $routes, string $prefix = null)

Register a named route collection for URL generation.

Parameters

string $key
RouteCollection $routes
string $prefix

Return Value

UrlGenerator

RouteCollectionUrlGenerator to(string $collection)

Retrieve an URL generator instance for the given named route collection.

Parameters

string $collection

Return Value

RouteCollectionUrlGenerator