Skip to content

Commit

Permalink
Merge 4.3 into 4.4 (#3019)
Browse files Browse the repository at this point in the history
  • Loading branch information
mongodb-php-bot authored Jun 28, 2024
2 parents 512c610 + f6bb2ff commit 7a5f587
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/transactions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,16 @@ to another account:
:start-after: begin transaction callback
:end-before: end transaction callback

You can optionally pass the maximum number of times to retry a failed transaction as the second parameter as shown in the following code example:
You can optionally pass the maximum number of times to retry a failed transaction
as the second parameter, as shown in the following code example:

.. code-block:: php
:emphasize-lines: 4

DB::transaction(function() {
// transaction code
},
retries: 5,
attempts: 5,
);

.. _laravel-transaction-commit:
Expand Down

0 comments on commit 7a5f587

Please sign in to comment.