Taylor Otwell recently added a cool new Concurrency facade which he announced and showed off at Laracon 2024. This is such a great new feature as it allows for multiple concurrent tasks at the same time. If you're like me, this is a game-changer when you are running multiple analytical queries, as the time each one takes adds up fast.
However at the time of writing, the Concurrency facade doesn't yet work with Laravel Herd. There is an open pull request within Symfony that fixes this.
But if you're like me and feeling impatient, you can add the following 'hacky' code to your AppServiceProvider to get this working:
Thanks to Marcel Pociot's PR as I didn't know about the HERD_HOME
env variable.
If you're interested in the full pull request, you can find it here. Once this is merged, you can remove the hacky code from your AppServiceProvider.