DEV Community

Mahedi Hasan
Mahedi Hasan

Posted on

1 1

Learn How to Use Soft Delete in Laravel 6

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.

https://www.codechief.org/article/learn-how-to-use-soft-delete-in-laravel-6

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more