Find The Latest Laravel Packages

Login To Post Your Package

People Exploring Laravel

34430

Soft Delete Child Models When a Parent is Deleted

Soft Delete Child Models When a Parent is Deleted

*Soft deleting child models when a parent is deleted* means marking both parent and child records as deleted instead of permanently removing them. This maintains data integrity by preventing orphaned records. It can be achieved manually using triggers, event listeners, or custom logic, or by using packages like Laravel Soft Deletes Parent. This approach allows for data recovery while preserving data history.

"Data Relationships Matter"

No Website
GitHub Repo

Related Projects

Open Telemetry Package for Laravel

Open Telemetry Package for Laravel

OpenTelemetry: Your Laravel advantage.

View Page 229 views
Manage navigational elements in Laravel apps

Manage navigational elements in Laravel apps

Structure Your Navigation.

View Page 416 views
Laravel Translation Scanner

Laravel Translation Scanner

Accelerate your translation process

View Page 469 views
Laravel Horizon Prometheus Exporter

Laravel Horizon Prometheus Exporter

Unlock powerful queue monitoring

View Page 640 views
Blast — Storybook UI Development for Laravel Blade

Blast — Storybook UI Development for Laravel Blade

Accelerate UI development with Laravel Blade

View Page 532 views
Sub-Minute and Cron-less Scheduled Tasks in Laravel

Sub-Minute and Cron-less Scheduled Tasks in Laravel

Your Laravel App's Reliable Taskmaster

View Page 438 views

Partners

No verified ads available.