Skip to content

Conversation

runbing
Copy link
Contributor

@runbing runbing commented Oct 5, 2025

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.

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.
@taylorotwell taylorotwell merged commit 6fcb3d2 into laravel:12.x Oct 6, 2025
@runbing runbing deleted the patch-1 branch October 6, 2025 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants