Skip to content

Commit 0a143cc

Browse files
authored
DOCSP-41010: Fix transactions code example (#3016)
1 parent d103849 commit 0a143cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/transactions.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,16 @@ to another account:
9999
:start-after: begin transaction callback
100100
:end-before: end transaction callback
101101

102-
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:
102+
You can optionally pass the maximum number of times to retry a failed transaction
103+
as the second parameter, as shown in the following code example:
103104

104105
.. code-block:: php
105106
:emphasize-lines: 4
106107

107108
DB::transaction(function() {
108109
// transaction code
109110
},
110-
retries: 5,
111+
attempts: 5,
111112
);
112113

113114
.. _laravel-transaction-commit:

0 commit comments

Comments
 (0)