From 5ddad9c673e6fa02f8762aa0695d5af337cf6f4d Mon Sep 17 00:00:00 2001 From: Runbing Date: Sun, 5 Oct 2025 18:43:02 +0800 Subject: [PATCH] Correct demonstration URL in route helper example The example for the route helper currently shows a relative URL: ``` // /user/1/profile?photos=yes ``` However, the route helper returns an absolute URL by default, since the third parameter is not set to false. The corrected example should be: ``` // http://example.com/user/1/profile?photos=yes ``` This change ensures the documentation matches the actual behavior of the route helper. --- routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing.md b/routing.md index a0c7ef3320..8ebfd45c95 100644 --- a/routing.md +++ b/routing.md @@ -462,7 +462,7 @@ Route::get('/user/{id}/profile', function (string $id) { $url = route('profile', ['id' => 1, 'photos' => 'yes']); -// /user/1/profile?photos=yes +// http://example.com/user/1/profile?photos=yes ``` > [!NOTE]