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 | stringornull |
null
|
|
| $options | arrayorstringornull |
null
|
Either an array of options for the Uri class or a language string |
Return type
string