Laravel: Client\Request::uri() für den HTTP-Client
Das Request-Objekt des HTTP-Clients hat jetzt eine uri()-Methode, die eine Illuminate\Support\Uri-Instanz zurückgibt und Http::assertSent()-Callbacks vereinfacht.
Pull request by @stevebauman
The HTTP client's Request object now has a uri() method that returns an Illuminate\Support\Uri instance, consistent with the uri() method already available on Illuminate\Http\Request. This makes Http::assertSent() callbacks a lot cleaner when you need to inspect the URL.
Http::assertSent(function (Request $request) {
return $request->uri()->path() === '/api/users'
&& $request->uri()->query()->integer('page') === 2;
});