Fresh code drop

Inspect HTTP fake request URIs

PHP

Laravel 13 API example based on official Laravel documentation. Source: https://laravel.com/framework/docs/changelog#add-clientrequesturi

PHP
CodeSnap // free canvas

Inspect HTTP fake request URIs

<?php

use Illuminate\Http\Client\Request;
use Illuminate\Support\Facades\Http;

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

// Further reading: https://laravel.com/framework/docs/changelog#add-clientrequesturi

Turn your code into a post.Five templates are free—no account needed.

Remix this snap