Skip to content

Commit 9bbce53

Browse files
committed
force destroy
1 parent af89264 commit 9bbce53

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
@@ -927,6 +927,10 @@ In the example above, we are retrieving the model from the database before calli
927927

928928
Flight::destroy(collect([1, 2, 3]));
929929

930+
If you are utilizing [soft deleting models](#soft-deleting), you may permanently delete models via the `forceDestroy` method:
931+
932+
Flight::forceDestroy(1);
933+
930934
> [!WARNING]
931935
> The `destroy` method loads each model individually and calls the `delete` method so that the `deleting` and `deleted` events are properly dispatched for each model.
932936

0 commit comments

Comments
 (0)