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