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

History Laravel Package

panoscape/history

Eloquent model history tracking for Laravel. Add the HasOperations and HasHistories traits to record who changed which model, then browse a timeline of operations via the History facade. Includes migrations, config, and translations.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Ship an audit/activity trail without building one. The package provides an Eloquent-backed history table, user attribution, event labels, and old/new attribute metadata for create, update, delete, and restore events. This supports a fast MVP or internal-tool timeline for “who changed what, when.”
  • Prioritize support and debugging workflows. Product and support teams can expose per-model histories and per-user operations, filtered by user or ordered by time, reducing investigation time for customer issues and admin mistakes.
  • Defer a custom audit service. For Laravel apps with straightforward Eloquent models, adopting this MIT package is cheaper than designing audit schema, traits, localization, and event hooks in-house.
  • Enable admin/content accountability. Use it for content change logs, admin action histories, and lightweight approval context. Custom ModelChanged events can cover domain actions such as role changes or settings updates.
  • Shape roadmap decisions around audit maturity. Treat this as an application-level history feature, not a compliance-grade audit system. If the roadmap includes regulated audit, long retention, tamper evidence, or analytics, plan a later migration to a more robust auditing package or internal platform.
  • Build vs. buy: favor adoption for low-risk, internal, or early-stage products where speed and low operational overhead matter. Avoid building custom audit infrastructure until requirements exceed simple change history.

When to Consider This Package

Consider it when:

  • The product is a Laravel 6–13 application with Eloquent models and needs a lightweight change-history feature quickly.
  • The requirement is “show recent changes,” “who edited this record,” or “user activity timeline,” not formal compliance auditing.
  • You need simple user attribution, including non-default auth guards, and can accept that unauthenticated operations are recorded without a user.
  • Localized history messages, custom event messages, event whitelists, attribute blacklists, and test/console tracking toggles are valuable.
  • The team can tolerate modest community adoption and wants a small, MIT-licensed dependency rather than a larger audit platform.
  • Sensitive fields can be excluded via attribute blacklists and the product does not require automatic PII discovery or advanced redaction.

Look elsewhere when:

  • You need tamper-evident, immutable, regulated audit logs with retention policies, legal hold, or security-grade guarantees.
  • Changes occur through bulk updates, direct database writes, queue jobs outside Eloquent events, or external systems that bypass model events.
  • You need rollback/version restore, approval workflows, rich diff UI, audit analytics, anomaly detection, or enterprise search.
  • You require vendor support, strong ecosystem adoption, or a large contributor base; this package has limited dependents and a small community footprint.
  • You need multi-tenant audit isolation, high-volume archival, or fine-grained access control around audit data.

How to Pitch It (Stakeholders)

  • To executives: This is a low-cost, MIT-licensed way to add accountability and support visibility quickly. It helps answer “who changed this and what changed?” without a custom audit build. It is appropriate for internal tools and product activity feeds, but should not be positioned as a sole compliance or security-audit control.
  • To engineering: The integration is simple: add traits to the acting user and tracked model, publish migration/config, and query provided relationships. It supports Laravel 6–13, custom events, localization, auth-guard scanning, filters, and custom metadata. Caveats: it captures Eloquent-level events only, has a known model-label edge case on updates, and has modest community adoption. Recommend pinning the version, adding integration tests, wrapping access in product-owned services, and avoiding reliance on it for regulated audit until requirements are validated.
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.
ably/pubsub-server
mstfkhazaal/defender
mfonte/base62x
karnoweb/metapilot
tobya/bcsapiwrapper
swalker2/cpanel
vish4395/laravel-translation-manager
morningtrain/economic
teksite/systeminfo-laravel
atomcms/voting
run6/weather
siokas/laravelembeddirectives
adamlien/pkuuids
gilsonsouza/lara-doc-generator
manelgavalda/enrollment_mobile
unabomber/timezone
delatbabel/contacts
astritzeqiri/g-recaptcha
kevinongko/laravel-genode
developeruz/laravel-analytics