Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 715 Bytes

File metadata and controls

29 lines (20 loc) · 715 Bytes
title HTTP Client
description Laravel Zero includes a minimal HTTP Client component

HTTP Client

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 http

Usage

The 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.