Skip to content

Commit 9fc9c11

Browse files
authored
Update pruning-workflows.md
1 parent e17d680 commit 9fc9c11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/configuration/pruning-workflows.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ You can also control which workflows are pruned by extending the base workflow m
2828
```php
2929
public function prunable(): Builder
3030
{
31-
//
31+
return static::where('status', 'completed')
32+
->where('created_at', '<=', now()->subMonth())
33+
->whereDoesntHave('parents');
3234
}
3335
```
3436

0 commit comments

Comments
 (0)