chrisbaltazar/doctrine-soft-delete
WHERE deleted_at IS NULL clauses) and technical debt. Supports a single source of truth for data lifecycle management.Adopt if:
WHERE deleted_at IS NULL).auto_generated_active_flag).Look elsewhere if:
deleted_at column only).SoftDeletes trait may suffice.*"This package lets us handle data privacy requests (like GDPR’s ‘right to erasure’) without losing critical data—think of it as a ‘pause’ button for records. Users get compliance, we keep our analytics and history intact, and developers avoid reinventing the wheel. It’s a turnkey solution that:
*"This bundle automates soft deletes in Doctrine, so we never have to manually filter deleted_at columns. Key advantages:
WHERE clauses.SoftDeletableInterface and add a deletedAt field.#[SoftDeleteUniqueIndex].Tradeoffs:
Recommendation: Adopt for new projects or Symfony-powered modules. For existing Laravel apps, evaluate whether the effort to bridge Doctrine/Eloquent justifies the benefits—or stick with SoftDeletes trait for simplicity."*
*"This solution ensures we can honor data deletion requests without permanently losing records—critical for:
The package’s auto-generated flags also prevent data corruption (e.g., duplicate emails) during soft deletes, which is a common pain point in manual implementations. It’s a low-risk, high-reward way to future-proof our data lifecycle management."*
How can I help you explore Laravel packages today?