| title | HTTP Client |
|---|---|
| description | Laravel Zero includes a minimal HTTP Client component |
Laravel includes an expressive API around the Guzzle HTTP client.
This can easily be installed into Laravel Zero using the http component.
To install this component, run the following command:
php <your-app-name> app:install httpThe HTTP Client adds easy to use methods for standard HTTP requests.
use Illuminate\Support\Facades\Http;
Http::get($url);
Http::post($url, $data);Full details on using the HTTP Client is available on the main Laravel documentation.