$router->call()
Calls the Router by path and method.
$router->call(string $path = null, string $method = 'GET', Closure $callback = null): mixed
Parameters
Name | Type | Default |
---|---|---|
$path | string |
null |
$method | string |
'GET' |
$callback | Closure |
null |
Return type
mixed