Support the ongoing development of →
Requests Packages
Last updated 2 years ago.

You could use Guzzle, there are some examples

Code depends on if you need to post or get to the api.

Take a look in vendor\laravel\framework\src\Illuminate\Mail\Transport, both MailgunTransport and MandrillTransport use Guzzle to access the service api's.


Thanks TerrePorter

For those who didn't have the clue like me to expose this Guzzle library to controller.

You can do on top of the controller

use GuzzleHttp\Client;

and then create Client's object as instructed in the Guzzle documentation


Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.