⚠️ This post links to an external website. ⚠️
Let's set the scene. You know that feeling when you need to fetch data from multiple APIs, and you're sitting there watching your application make request... after request... after request... while your users are staring at a loading spinner that's been going for so long it's practically become a screensaver?
We've all been there, we've all built systems that have had to work like this in PHP. And honestly, it's been a bit rubbish.
Sure, Laravel gave us
Http::pool()back in version 8, and that helped. But if you wanted to track progress, handle failures gracefully, or know when everything was done? Well, you were back to writing boilerplate code that looked like it crawled out of 2015.Enter Laravel
Http::batch()(Huge thanks to Wendell Adriel for the work on this).
continue reading on jump24.co.uk
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.