class UrlGenerator

Properties

protected array $routes
protected Application $app

Methods

__construct(Application $app)

No description

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

<p>Register a named route collection for URL generation.</p>

to(string $collection)

<p>Retrieve an URL generator instance for the given named route collection.</p>

Details

__construct(Application $app)

Parameters

Application $app

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

<p>Register a named route collection for URL generation.</p>

Parameters

string $key
RouteCollection $routes
string $prefix

Return Value

UrlGenerator

RouteCollectionUrlGenerator to(string $collection)

<p>Retrieve an URL generator instance for the given named route collection.</p>

Parameters

string $collection

Return Value

RouteCollectionUrlGenerator