Dev Tools · 2h ago
Laravel Soft Deletes: How to 'Delete' Without Losing Data
Soft deletes in Laravel mark records as deleted without removing them from the database, using a `deleted_at` column. The `SoftDeletes` trait automatically excludes soft-deleted records from queries. Developers can restore records with `restore()` or include them using `withTrashed()`.
Meridian48 take
A practical tutorial for Laravel developers, but the concept is standard in many ORMs—not groundbreaking.
laravelsoft-deletes