Router::execute()
Creates a micro-router and executes the routing action immediately
Router::execute(string|null $path = null, string $method = 'GET', array $routes = [ ], Closure|null $callback = null)
Parameters
Name | Type | Default |
---|---|---|
$path | string ornull |
null
|
$method | string |
'GET'
|
$routes | array |
[ ]
|
$callback | Closure ornull |
null
|