zhortein/doctrine-lifecycle-bundle
A Symfony bundle for integrating Doctrine lifecycle events into your application. It provides configurable listeners and services for reacting to entity creation, update, and deletion, helping keep persistence logic clean, centralized, and maintainable.
src/Interfaces/Contracts and the traits: BlameableInterface, BlameableTrait, TimestampableInterface, TimestampableTrait. In 0.1.3, confirm the setter return types before implementing interfaces manually.BlameableTrait and/or TimestampableTrait to an Eloquent model, implement the matching interface if required, and ensure the expected columns exist (created_by, updated_by, deleted_by where applicable, and timestamp columns).Post, authenticate a user, create/update a record, and verify the audit columns are populated. Then add timestampable behavior and verify updates are tracked as expected.actingAs($user) and assert the database columns directly. For queued jobs, assert the resolver context is restored or set correctly inside the job.deleted_by through the blameable trait or whether you need a model observer/event hook.BlameableInterface/BlameableTrait and TimestampableInterface/TimestampableTrait. If you implement these interfaces manually or override setters, update your signatures to match the package source. Using the provided traits avoids most breakage.TimestampableTrait replaces or supplements Laravel behavior before adding custom timestamp columns.How can I help you explore Laravel packages today?