My Blog Posts

Future Zttp Pack with Laravel 7

Future Zttp Pack with Laravel 7

The guzzle package by Zttp Adam Wathan will come to Laravel 7 as the new HTTP package. To add this feature, you only need to post some JSons according to the pick request.

Here are some of the basic uses of the new Http package:

use Illuminate\Support\Facades\Http; $response = Http::post('url', [
'name' => 'Taylor',
echo $response['foo']; $response->body()
$response->successful() (>= 200 && 200< 300)

It should be noted that there is only one LAYER of UX/DX convenience on top of the Guzzle. If you add too many features and need more, use Guzzle directly.

For more information about this new HTTP package, see the pick request.

Share this article

Comments (0)