Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit ec6fbce

Browse files
jpkleemansweierophinney
authored andcommitted
Update uri-generation.md
1 parent f5e24a6 commit ec6fbce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/book/features/router/uri-generation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ the name:
3838
they were added.
3939

4040
```php
41-
$app->route('/foo, $middleware', ['GET', 'POST']); // "foo^GET:POST"
41+
$app->route('/foo', $middleware, ['GET', 'POST']); // "foo^GET:POST"
4242
```
4343

4444
Like the HTTP-specific methods, `route()` also returns a `Route` instance,
4545
and you can set the name on it:
4646

4747
```php
48-
$route = $app->route('/foo, $middleware', ['GET', 'POST']); // "foo^GET:POST"
48+
$route = $app->route('/foo', $middleware, ['GET', 'POST']); // "foo^GET:POST"
4949
$route->setName('foo'); // "foo"
5050
```
5151

0 commit comments

Comments
 (0)