Skip to content

[13.x] Add Client\Request::uri()#60282

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
stevebauman:client-request-uri
May 26, 2026
Merged

[13.x] Add Client\Request::uri()#60282
taylorotwell merged 1 commit into
laravel:13.xfrom
stevebauman:client-request-uri

Conversation

@stevebauman
Copy link
Copy Markdown
Contributor

Description:

This PR adds uri() method to Illuminate\Http\Client\Request to return an Illuminate\Support\Uri instance, matching the method available on Illuminate\Http\Request.

Example:

Http::fake();

Http::get('https://example.com/api/users?page=2');

Http::assertSent(function (Request $request) {
    return $request->uri()->path() === '/api/users'
        && $request->uri()->query()->integer('page') === 2;
});

@taylorotwell taylorotwell merged commit ee6949d into laravel:13.x May 26, 2026
52 of 54 checks passed
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