luissantiago/elogquent
Elogquent is a Laravel package for logging Eloquent model events. Add its trait to models to automatically record create, update, and delete actions—including changed attributes—for simple auditing and activity history.
Architecture fit
owen-it/laravel-auditing makes and the opposite of spatie/laravel-activitylog's coarse per-event record. For a high-write transactional system (orders, ledger entries, IoT ingestion), this is a material design constraint; for CRUD-style admin/B2B SaaS data, it is a good fit.DB::table()->update(), bulk upserts, raw SQL, and queue workers writing outside the ORM will not be captured. Any architecture that relies on bulk operations must account for that gap explicitly — otherwise the audit trail is silently incomplete, which is worse than no audit trail in a compliance context.Integration feasibility
Technical risk
$dirty/$original divergence can all produce history records that are technically accurate but misleading to a human reader (e.g., raw encrypted blobs, or a JSON column recorded as one opaque string). Needs empirical validation against our actual models.updateQuietly(), saveQuietly(), observers that themselves mutate models (recursion risk), and nested transactions are all places where naive event hooks break or double-count.Key questions
AuditLogger abstraction so we can swap implementations later without touching domain code?deleted_at/soft deletes, restores, and force deletes?Stack fit
Migration path
Compatibility
Sequencing
Maintenance
Support
Scaling
last_seen_at, derived fields), consider async writes, and partition or archive by month if volume warrants.Failure modes
Ramp-up
How can I help you explore Laravel packages today?