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

You could use Guzzle, there are some examples http://guzzle.readthedocs.org/en/latest/

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.

0

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.