Use retry() for callbacks that may randomly fail
- ·
- Telegram
- ·
- Newsletter
.@laravelphp out here helping me again, with its helpers!
I was hitting a shaky API that sometimes failed.
Here, the retry function tries the callback 3 times, with a 2 second interval in-between retries.