enable soft deletes

Laraship QuestionsCategory: Technicalenable soft deletes
st3fan asked 3 years ago

How may I enable soft deletes for certain tables?
1 Answers
laraship Staff answered 3 years ago
Hello Stefan, Currently, you need to add the soft delete trait on the model itself, or you can create a model that extends the original model and add the SoftDelete trait ? https://laravel.com/api/8.x/Illuminate/Database/Eloquent/SoftDeletes.html