Swift Soft Delete Management with Laravel's forceDestroy
Need to permanently delete soft-deleted records? Laravel's new forceDestroy method streamlines the process! Let's explore this convenient addition to the SoftDeletes toolkit.
The Old vs New Way
The traditional approach required finding the model first:
// Old way
$comment = Comment::find(1);
$comment->forceDelete();
// New way