Skip to content

Commit a3d14a3

Browse files
committed
wip
1 parent e75354e commit a3d14a3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

helpers.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3370,6 +3370,19 @@ $user = Pipeline::send($user)
33703370
->thenReturn();
33713371
```
33723372

3373+
The `withinTransactions` method may be invoked on the pipeline to automatically invoke each step of the pipeline within a database transaction:
3374+
3375+
```php
3376+
$user = Pipeline::send($user)
3377+
->withinTransactions()
3378+
->through([
3379+
GenerateProfilePhoto::class,
3380+
ActivateSubscription::class,
3381+
SendWelcomeEmail::class,
3382+
])
3383+
->thenReturn();
3384+
```
3385+
33733386
<a name="sleep"></a>
33743387
### Sleep
33753388

0 commit comments

Comments
 (0)