Skip to content

Commit 6fcb3d2

Browse files
authored
Correct demonstration URL in route helper example (#10844)
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.
1 parent 2d059d1 commit 6fcb3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ Route::get('/user/{id}/profile', function (string $id) {
462462

463463
$url = route('profile', ['id' => 1, 'photos' => 'yes']);
464464

465-
// /user/1/profile?photos=yes
465+
// http://example.com/user/1/profile?photos=yes
466466
```
467467

468468
> [!NOTE]

0 commit comments

Comments
 (0)