In this short 10 minute video, I'll explain exactly what soft deletes are in Laravel and show how to use them in an existing application.
You'll learn how to:
Soft delete a model
Return all soft-deleted models in an Eloquent query
Hard delete a model after soft deleting
Recover a soft-deleted model back to an active state
0:00 Intro
01:20 Enabling soft deletes
03:20 Create an archive page
05:55 Hard delete a model
10:14 Wrapping up
Follow me on Twitter! / aschmelyun
Join my newsletter, where I send out new information twice each month in the PHP, JavaScript, and Docker worlds: https://aschmelyun.substack.com