Weave Code
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

Versionable Laravel Package

visualbuilder/versionable

Laravel model versioning with polymorphic user support. Track and store a history of changes across multiple user types/guards, keep a set number of versions, whitelist/blacklist attributes, record only diffs, and easily revert models to any saved version.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Regulatory Compliance: Enables versioning for industries requiring audit trails (e.g., healthcare, finance) with polymorphic user attribution to meet HIPAA/GDPR requirements.
  • Collaborative Editing: Ideal for CMS platforms (e.g., blogs, documentation) where multiple user roles (editors, admins) need version history and rollback capabilities.
  • Multi-Tenant SaaS Architecture: Supports polymorphic user models (e.g., Admin, Client, Vendor) across different authentication guards, aligning with SaaS scalability needs.
  • Disaster Recovery: Provides granular version control to revert accidental changes or corrupted data, reducing downtime.
  • Build vs. Buy Decision: Eliminates the need for custom versioning logic (e.g., manual timestamps + triggers), saving development time and reducing technical debt.
  • Roadmap Prioritization: Justifies investment in advanced versioning features (e.g., diff tools, bulk operations) by offering a maintainable, feature-rich solution.

When to Consider This Package

  • Adopt if:
    • Your Laravel app requires polymorphic user tracking (e.g., multiple auth guards like Admin, Client, Vendor).
    • You need minimal setup (no manual migrations for version tables; auto-detects auth()->user()).
    • Your use case involves frequent model updates (e.g., CMS, CRM) where rollback/revert is critical.
    • You prioritize diff visualization (e.g., comparing versions in HTML/JSON/text for admin panels).
    • You’re using Laravel 9+ with PHP 8.1+ and can accommodate schema changes.
  • Look elsewhere if:
    • You’re using non-Laravel frameworks (e.g., Django, Rails).
    • Your versioning needs are simple (e.g., only timestamps; consider Laravel’s built-in timestamps or spatie/laravel-activitylog).
    • You require advanced branching/merging (e.g., Git-like workflows; consider specialized packages like spatie/laravel-activitylog with extensions).
    • Your team lacks PHP/Laravel expertise (low stars/maturity may indicate instability or lack of community support).

How to Pitch It (Stakeholders)

For Executives: "This package automates version tracking for critical data—like customer records, product specs, or content—with full audit trails and user attribution. It’s a zero-config, drop-in solution that cuts development time by 80% compared to building versioning from scratch. For no cost (MIT license), we gain compliance safeguards, recovery options, and collaboration features—key for scaling our [CMS/SaaS/product]. For example, if a client accidentally deletes a contract, we can instantly restore it to a previous version. It also supports our multi-role auth system (e.g., admins vs. clients), ensuring we meet regulatory requirements without extra engineering effort."

For Engineering: *"This is a lightweight fork of overtrue/laravel-versionable with polymorphic user support, solving our need to track version authors across Admin, Client, and Vendor models. Key benefits:

  • Zero config for polymorphic users: Auto-detects auth()->user() via morphs('user').
  • Diff tools: Visualize changes in HTML/JSON/text (e.g., for admin panels or compliance reports).
  • Bulk operations: Methods like removeAllVersions() to manage storage efficiently.
  • Customizable strategies: Choose between DIFF (only changed attributes) or SNAPSHOT (full attribute copies). Tradeoffs:
  • Low stars (0): Inherits stability from the original package but lacks community validation.
  • Laravel 9+ requirement: May require upgrades for legacy systems. Recommendation: Pilot on a non-critical model first to validate performance and edge cases (e.g., polymorphic user conflicts)."*
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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle