new Route()
Creates a new Route object for the given pattern(s), method(s) and the callback action
Parameters
Name | Type | Default |
---|---|---|
$pattern * | string |array |
– |
$method * | string |array |
– |
$action * | Closure |
– |
$attributes | array |
[ ] |