I am confused with the usage of Guzzle in a scalable way. I have installed Guzzle in my Laravel 5.5 Project. Also, I have added a new File ApiBridge
in app
folder. Then in my Controller, I used this file.
Can anyone tell me how I can use the Apibridge file to generate the access token and send a CURD request in the most scalable way? I know we can use new Client([base_uri:..])
. But I don't want to give the URL every time in all controllers.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire