Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Eloquent Cascade

Eloquent Cascade Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • Cascade delete, restore, and force delete across declared relations
  • Supports nested relationships and custom cascade behavior
  • Simple trait-based setup on any Eloquent model
  • Keeps soft-deleted and related data consistent
  • Integrates cleanly with existing model events
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package