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
Laravel Softdeletes

Laravel Softdeletes Laravel Package

dcat/laravel-softdeletes

dcat/laravel-softdeletes adds enhanced soft delete support to Laravel Eloquent models. Cascade deletes and restores across related records, keep data consistent, and avoid unique constraint conflicts from trashed rows, all through simple traits with minimal configuration.

View on GitHub
Deep Wiki
Context7

dcat/laravel-softdeletes brings Laravel's soft delete behavior to pivot models in many-to-many relationships. Detaching a related record no longer removes the pivot row permanently—it keeps a deleted_at timestamp, preserving history and allowing later restoration.

Just add the package trait to your pivot model and keep using familiar attach, detach, and sync calls. Detached rows become trashed automatically and can be queried, restored, or force-deleted like any soft-deletable model.

  • Soft-deletable pivots with automatic deleted_at on detach.
  • Restore & force delete detached relationships.
  • Trashed-aware queries (withTrashedPivot, onlyTrashedPivot).
  • Native Eloquent integration via a custom pivot model and trait.
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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core