saloonphp / saloon

🤠 Build beautiful API integrations and SDKs with Saloon
https://docs.saloon.dev
MIT License
2.03k stars 105 forks source link

Change guzzle client creation (linked to PR in laravel-plugin) #403

Closed gdebrauwer closed 1 month ago

gdebrauwer commented 4 months ago

I noticed the laravel-http-sender package is being sunset, but I still want requests/responses to be logged in Telescope. Then I discovered this is possible with the following package: https://github.com/huzaifaarain/telescope-guzzle-watcher/tree/main

The problem is that this package only works if the guzzle client is created using the service container. That is currently not the case.

This PR and PR https://github.com/saloonphp/laravel-plugin/pull/62 make that possible with minimal changes.

pajkho commented 1 month ago

What is the status on this? Will it be merged in?

Sammyjo20 commented 1 month ago

The saloonphp/laravel-http-sender has been sunset but it will soon be replaced with a new package that @craigpotter is working on, Barstool - which will record all Saloon requests/responses for you. You can manually change the way the sender is resolved to use the service container with this guide:

https://docs.saloon.dev/conclusion/how-to-guides/improving-speed-with-laravel