Find The Latest Laravel Packages

Login To Post Your Package

People Exploring Laravel

42319

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

Aureus ERP

Aureus ERP

Adaptable Solutions, Exceptional Results.

View Page 256 views
Require Signatures and Associate Them With Eloquent Models

Require Signatures and Associate Them With Eloquent Models

Sign it Securely, Associate it Smartly

View Page 470 views
Simplify Laravel Admin Panels with Backpack

Simplify Laravel Admin Panels with Backpack

CRUD for Laravel

View Page 487 views
Laravel HATEOAS Package

Laravel HATEOAS Package

HATEOAS Made Easy in Laravel

View Page 525 views
Laravel Attributes Package

Laravel Attributes Package

Unlock the Potential of PHP 8

View Page 540 views
Generate String Acronyms with this Laravel Macro

Generate String Acronyms with this Laravel Macro

Create User Initials with Str Acronym.

View Page 579 views