DEV Community


Learn How to Use Soft Delete in Laravel 6

mahedih13542828 profile image Mahedi Hasan ・1 min read

In this tutorial i am going to discuss about soft delete in laravel 6. I Will also show you how can we restore our deleted data and can again show it in browser.

When models are soft deleted, they are not actually removed from your database. Instead, a deleted_at attribute is set on the model and inserted into the database. If a model has a non-null deleted_at value, the model has been soft deleted.

Discussion (0)

Forem Open with the Forem app