Url::to()
Smart resolver for internal and external urls
Url::to(string|null $path = null, array|string|null $options = null): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$path | string ornull |
null
|
|
$options | array orstring ornull |
null
|
Either an array of options for the Uri class or a language string |
Return type
string