class UrlGenerator

Properties

protected $routes

Methods

__construct(Application $app)

No description

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

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

to(string $collection)

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

Details

__construct(Application $app)

Parameters

Application $app

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

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

Parameters

string $key
RouteCollection $routes
string|null $prefix

Return Value

UrlGenerator

RouteCollectionUrlGenerator to(string $collection)

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

Parameters

string $collection

Return Value

RouteCollectionUrlGenerator