Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2805,12 +2805,13 @@ return retry([100, 200], function () {
To only retry under specific conditions, you may pass a closure as the fourth argument to the `retry` function:

```php
use App\Exceptions\TemporaryException;
use Exception;

return retry(5, function () {
// ...
}, 100, function (Exception $exception) {
return $exception instanceof RetryException;
return $exception instanceof TemporaryException;
});
```

Expand Down