From 9fea7b863ddb19f26ad1497eac82436df741c36d Mon Sep 17 00:00:00 2001 From: terrybr Date: Sat, 12 Apr 2025 13:42:24 -0400 Subject: [PATCH] Fix code snippets. --- src/docs/routing/route-groups.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/routing/route-groups.md b/src/docs/routing/route-groups.md index 0b24cb43..6672cc38 100644 --- a/src/docs/routing/route-groups.md +++ b/src/docs/routing/route-groups.md @@ -53,7 +53,7 @@ app()->group('/admin', ['middleware' => 'auth', function () { app()->get('/users', function () { echo 'admin users'; }); -}); +}]); ``` Or you can directly pass the middleware in like this: @@ -71,7 +71,7 @@ app()->group('/user', ['middleware' => $middleware, function () { app()->get('/(\d+)', function ($id) { response()->markup("user $id"); }); -}); +}]); ``` ## Subfolder Support