$router->call()
Calls the Router by path and method. This will try to find a Route object and then call the Route action with the appropriate arguments and a Result object.
$router->call(string|null $path = null, string $method = 'GET', Closure|null $callback = null)
Parameters
Name | Type | Default |
---|---|---|
$path | string ornull |
null
|
$method | string |
'GET'
|
$callback | Closure ornull |
null
|