How to Make Use of Laravel Soft Delete:
- Use $table->softDeletes() to add a deleted at column to the migration.
- To enable soft deletes for a model, add the IlluminateDatabaseEloquentSoftDeletes trait to the model and reference it with the use keyword SoftDeletes.
Share a personalized message with your friends.