Laravel - HTTP Client - Faking Responses
For example, to instruct the HTTP client to return empty,
200 status code responses for every request, you may call the
fake method with no arguments:
use Illuminate\Support\Facades\Http; Http::fake(); $response = Http::post(...);
When faking requests, HTTP client middleware are not executed. You should define expectations for faked responses as if these middleware have run correctly.