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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay