Skip to content

Conversation

@browner12
Copy link
Contributor

similar to route(), to(), action() and others, this is a helper method to generate a fluent Uri object for the current request's URL.

added some basic tests to make sure these helpers were all instantiating correctly. our CustomUrlGeneratorResolver fakes generating the desired URLs.

similar to `route()`, `to()`, `action()` and others, this is a helper method to generate a fluent `Uri` object for the current request's URL.

added some basic tests to make sure these helpers were all instantiating correctly. our `CustomUrlGeneratorResolver` fakes generating the desired URLs.
@taylorotwell
Copy link
Member

You can already do this via $request->uri().

browner12 added a commit to browner12/framework that referenced this pull request Oct 27, 2025
these assertions test the methods used to build URLs made by the `UrlGenerator`.

these tests were added in addition to the feature in laravel#57530. the feature was rejected, but figured I would try the tests separately.
taylorotwell pushed a commit that referenced this pull request Oct 27, 2025
these assertions test the methods used to build URLs made by the `UrlGenerator`.

these tests were added in addition to the feature in #57530. the feature was rejected, but figured I would try the tests separately.
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