TIP 32 / 73

Using Two Amazing Helpers in Laravel Will Bring Magic Results.

Using two amazing helpers in Laravel will bring magic results...

In this case, the service will be called and retried (retry). If it stills failing, it will be reported, but the request won't fail (rescue)

php
rescue(function () {
    retry(5, function () {
        $this->service->callSomething();
    }, 200);
});