Closed gdebrauwer closed 1 month ago
What is the status on this? Will it be merged in?
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
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/mainThe 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.