Skip to content

Commit 340d60f

Browse files
committed
wip
1 parent 8576d22 commit 340d60f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

database.md

-14
Original file line numberDiff line numberDiff line change
@@ -379,20 +379,6 @@ DB::transaction(function () {
379379
});
380380
```
381381

382-
You may optionally pass a closure to the `transaction` method that will be executed if the transaction fails:
383-
384-
```php
385-
use Illuminate\Support\Facades\DB;
386-
387-
DB::transaction(function () {
388-
DB::update('update users set votes = 1');
389-
390-
DB::delete('delete from posts');
391-
}, onFailure: function () {
392-
// ...
393-
});
394-
```
395-
396382
<a name="handling-deadlocks"></a>
397383
#### Handling Deadlocks
398384

0 commit comments

Comments
 (0)