Closed gdebrauwer closed 3 months 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
@Sammyjo20 I just wanted to check the status on this? What is the best way currently to get requests logged in Telescope?
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.