Skip to content

Make Request::$uri an Uri object or the different uri parts easier to access #2307

Description

@NeoIsRecursive

Description

I think the the Request::$uri could (should!?) be an instance of the Uri component, this would prevent users from having to parse it into an Uri instance again when they want to get the path or host for example.

Another option I can see is to make parts/helpers available through the Request interface, like in laravel.

A bit of backstory

The reason for this is that I tinkered with deploying a tempest app with laravel cloud, but got some client errors due to being behind a proxy and inertia (on me) passing the full request url instead o a relative one, and getting the relative url was a bit more work than it could have been ($request->uri->relative or browser inspired $request-uri->href).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions