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 e17d680 commit 9fc9c11Copy full SHA for 9fc9c11
docs/configuration/pruning-workflows.md
@@ -28,7 +28,9 @@ You can also control which workflows are pruned by extending the base workflow m
28
```php
29
public function prunable(): Builder
30
{
31
- //
+ return static::where('status', 'completed')
32
+ ->where('created_at', '<=', now()->subMonth())
33
+ ->whereDoesntHave('parents');
34
}
35
```
36
0 commit comments