Laravel's Http facade wraps Guzzle to provide an expressive, fluent syntax for making outgoing HTTP requests: Http::get(), Http::post(), and Http::withToken(). It supports retries, timeouts, and fakes (Http::fake()) for testing without hitting real endpoints. This is the standard way to call third-party REST APIs or webhooks from within Laravel.
← Laravel theorytheory 0/50 · 0%
API · medium
37. Calling External APIs with HTTP Client
Consuming third-party services.
Check your understanding
1. Which facade is used to make outgoing HTTP requests?
2. How do you fake HTTP responses in tests?