chrisbaltazar/doctrine-soft-delete
GENERATED columns for auto_generated_active_flag, which is non-portable to PostgreSQL or SQLite. Laravel’s SoftDeletes uses a simple deleted_at column, avoiding this constraint.#[SoftDeleteUniqueIndex] attribute is Symfony-specific and may not integrate cleanly with Laravel’s annotation/attribute systems (e.g., #[Attribute] vs. Symfony’s #[Doctrine\ORM\...]). Laravel’s equivalent would likely require a custom trait or interface.ServiceProvider.dragonmantank/cms or symfony/doctrine-bundle) alongside Laravel.deleted_at checks (e.g., via AppServiceProvider).query() method or use model events (deleting, retrieved).SoftDeletes.GENERATED columns are MySQL-specific; PostgreSQL/SQLite would require alternative logic.deleted_at or generated flags.#[SoftDeleteUniqueIndex] feature would require a custom Laravel implementation:
deleted_at before inserts).GENERATED columns limits flexibility. If the app uses PostgreSQL or SQLite, this feature would need to be reimplemented or skipped.deleted_at checks in raw SQL queries or API calls.SoftDeletes may be sufficient.GENERATED column feature would need to be replaced or skipped.auto_generated_active_flag), or can they be implemented manually in Laravel?SoftDeletes without significant abstraction. A TPM must decide:
SoftDeletes.config/services.php.ServiceProvider to bridge Doctrine and Laravel’s DI container.SoftDeleteService) to abstract soft-delete logic across both ORMs.AppServiceProvider to inject deleted_at checks.HasSoftDeleteUniqueIndex to handle uniqueness checks.use SoftDeletes trait).dragonmantank/cms or custom setup.
deleted_at columns where needed).SoftDeleteService to handle soft deletes uniformly across both ORMs.#[SoftDeleteUniqueIndex] with a Laravel trait for Eloquent models.SoftDeletes and implement missing features (e.g., unique index handling) manually.dragonmantank/cms) and Symfony components (e.g., doctrine/orm).GENERATED columns).How can I help you explore Laravel packages today?