We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e75354e commit a3d14a3Copy full SHA for a3d14a3
helpers.md
@@ -3370,6 +3370,19 @@ $user = Pipeline::send($user)
3370
->thenReturn();
3371
```
3372
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
3386
<a name="sleep"></a>
3387
### Sleep
3388
0 commit comments