Skip to content

Commit 9fea7b8

Browse files
committed
Fix code snippets.
1 parent e089099 commit 9fea7b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docs/routing/route-groups.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ app()->group('/admin', ['middleware' => 'auth', function () {
5353
app()->get('/users', function () {
5454
echo 'admin users';
5555
});
56-
});
56+
}]);
5757
```
5858

5959
Or you can directly pass the middleware in like this:
@@ -71,7 +71,7 @@ app()->group('/user', ['middleware' => $middleware, function () {
7171
app()->get('/(\d+)', function ($id) {
7272
response()->markup("user $id");
7373
});
74-
});
74+
}]);
7575
```
7676

7777
## Subfolder Support

0 commit comments

Comments
 (0)