Recommended Laravel Telescope integration after laravel-http-sender deprecation
Problem
Historically, Saloon had an HTTP sender integration that made outgoing requests show up automatically in Laravel Telescope (under the HTTP Client watcher) which was really helpful for local development.
That sender package now appears to be deprecated/abandoned and the GitHub repo is archived, but I can’t find a clear, current “official” recommendation for Telescope compatibility going forward.
Questions
- What is the official recommended way to have Saloon requests appear in Laravel Telescope today?
- Could the docs/README be updated to better reflect the current status and recommended migration path?
Thanks!
Hey @dtvmedia
I'd be happy to accept a PR to implement telescope support in the Laravel Plugin.
Hey @JonPurvis one for us to discuss next week!
I decided to spend a bit of time hacking on this before I sleep and managed to get it working. It uses the SentSaloonRequest and SendingSaloonRequest events, hooked into a new TelescopeMiddleware class. I'll tidy up the code later today and submit a PR! 🤠
PR is here - https://github.com/saloonphp/laravel-plugin/pull/70
Behaviour is pretty much the same, you set the default_sender to HttpSender and you'll be able to see requests in Saloon!
EDIT: reverted back to an earlier version of the work so that it works regardless of sender.