How To: Soft Delete Data in Laravel 11

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/

Établi 8mo | 5 déc. 2024, 19:10:05


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

The Psychology of a Developer

This month’s first feature article comes from Nelson Isioma, breaking down ‘Cool Things You Can Do With HTMX’. As Nelson discusses, HTMX brings additional functionality while usin

30 juil. 2025, 22:40:05 | PHP Architect
The PHP Podcast: 2025.07.24

This week on the PHP Podcast, Eric and John talk about Special guest Ben Ramsey, the PHP Community Discord, PHP Community Mastodon, Open Source Licenses, AI in companies and code, HHVM, and more&#

25 juil. 2025, 01:10:07 | PHP Architect
The PHP Podcast: 2025.07.17

This week on the PHP Podcast, Eric and John discuss Spec-driven Development with Kiro, JetBrains on Huggingface, Event Sourcing with Laravel Verbs, Automating your life with n8n, PHP Tek 2026 Webs

18 juil. 2025, 02:20:04 | PHP Architect
The PHP Podcast: 2025.07.10

This week on the PHP Podcast, Eric and John discuss PHP 8.5’s new INI Diff feature, Exploiting Public APP_KEY Leaks, Does Theo listen to the podcast? Spoiler: NO, and more. Links from the sh

11 juil. 2025, 01:10:06 | PHP Architect
Community Corner: NativePHP for Mobile With Shane Rosenthal and Simon Hamp

In this episode, we talk with Shane Rosenthal and Simon Hamp about NativePHP for Mobile, which allows you to deploy Laravel applications to mobile devices and use native features like push notific

9 juil. 2025, 02:40:05 | PHP Architect
The PHP Podcast: 2025.07.03

This week on the PHP Podcast, Eric and John discuss BosonPHP, NativePHP, PHP is the new JavaScript, Shocking stories of Electricity, snake_case vs. camelCase, and why snake_case is better, among o

4 juil. 2025, 02:10:06 | PHP Architect
The PHP Podcast: 2025.06.26

This week on the PHP Podcast, Eric and John talk about Happy Birthday PHP, PHP Tek 2026 CTF Opened, Quirks in PHP, Laminas MVC Retiring, and more… Links from the show: Happy Birthday, PHP &#

27 juin 2025, 00:50:07 | PHP Architect