Skip to content

Commit 9d5acbf

Browse files
Add docs on model:prune --pretend (#7318)
* Add docs on model:prune --pretend * Fix typo * Update eloquent.md Co-authored-by: Taylor Otwell <[email protected]>
1 parent c7107a1 commit 9d5acbf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

eloquent.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,10 @@ Behind the scenes, the `model:prune` command will automatically detect "Prunable
942942
'--model' => [Address::class, Flight::class],
943943
])->daily();
944944

945+
You may test your `prunable` query by executing the `model:prune` command with the `--pretend` option. When pretending, the `model:prune` command will simply report how many records would be pruned if the command were to actually run:
946+
947+
php artisan model:prune --pretend
948+
945949
> {note} Soft deleting models will be permanently deleted (`forceDelete`) if they match the prunable query.
946950
947951
<a name="mass-pruning"></a>

0 commit comments

Comments
 (0)