The terrible thing about deleting data from a database is that it’s gone forever. We can’t even look at the data to see if we need it because it’s gone. If we need the data back, our only solution is to restore a backup, cross our fingers, and hope we have the backup just before […]
The post How To: Soft Delete Data in Laravel 11 appeared first on php[architect].
https://www.phparch.com/2024/12/how-to-soft-delete-data-in-laravel-11/
Accedi per aggiungere un commento
Altri post in questo gruppo

In this episode, Scott talks with Tessa Kriesel about #DevRel and her talk at #phptek 2025. PHP Tek is looking for sponsors! Contact see https://phptek.io/blog/elevate-your-brand-sponsorship-phptek

This week on the PHP Podcast, Eric and John discuss Laravel Enums, Serialization, json_decode, Bye Bye to Skype, and more. Links from the show: Buffer Overflow in Laravel: Causes, Prevention & Fixe

This week, a client complained about a long-running query, and we needed to fix it. While I can’t divulge the actual query, I can give an idea of its nastiness, which we inherited when we too

This week on the PHP Podcast, Eric and John talk about Explain Explained, Postgres All The Things, Livewire Remote Code Execution, Lazy Object, and more… Links from the show: Understanding M

Markdown for Developers One of my guiding principles as a developer is that our ability to communicate is one of the most important tools we developers have in our toolbox. There are lots of ways w

In this episode, Scott talks with TJ Miller about Prism “a powerful Laravel package for integrating Large Language Models (LLMs) into your applications”. PHP Tek is looking for sponsors

This week on the PHP Podcast, Eric and John talk about Laravel 12 released, Laravel.cloud released, and more… Links from the show: Laravel 12: A Quiet Evolution That Packs a Punch | ICre