sofa/eloquent-cascade
Sofa/eloquent-cascade adds cascading delete and update behavior to Laravel Eloquent models, letting you propagate changes through related records automatically. Configure cascades on relationships to keep parent and child data consistent without manual cleanup code.
sofa/eloquent-cascade brings automatic cascading actions to Laravel's Eloquent models, so deleting, restoring, or force-deleting a parent record also applies the same operation to its related models—mirroring database-level ON DELETE CASCADE in application logic.
How can I help you explore Laravel packages today?