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
Softdeletes

Softdeletes Laravel Package

wp-kit/softdeletes

Soft deletes for WordPress models in the WP Kit ecosystem. Trash records instead of permanently deleting them, restore when needed, and keep queries clean with automatically excluded trashed rows.

View on GitHub
Deep Wiki
Context7

wp-kit/softdeletes adds reusable soft delete support to wp-kit models. Instead of permanently removing records, it flags them as deleted so they can be hidden from normal queries and restored later—ideal for content that needs an undo path or audit trail.

Drop the SoftDeletes trait into any model to get timestamped deletion and a clean, expressive API for managing trashed records without touching your schema or rewriting queries.

  • Drop-in SoftDeletes trait for any wp-kit model
  • Query scopes: withTrashed(), onlyTrashed(), and default exclusion
  • Helper methods: delete(), restore(), and forceDelete()
  • Automatic deleted_at timestamp handling
  • Configurable column name and restore behavior
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.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings