Ad

revisionable: Laravel model revision history

Revisionable allows you to easily track changes to your Laravel models by adding a revision history. It provides a detailed record of modifications, including who made them and when.

Revisionable is a Laravel package that enables the creation of a revision history for your models without extensive coding. By incorporating the RevisionableTrait into a model, every modification to the model's attributes is recorded as a revision. This feature facilitates accountability and provides a complete audit trail of data changes. It caters to scenarios where tracking changes to model data is crucial for maintaining data integrity and historical context.

Revisionable offers a straightforward implementation through a trait, allowing for easy integration with existing Eloquent models and other classes extending Eloquent. The package supports popular authentication systems like Sentry and Sentinel. It provides configurable options for controlling which fields are tracked, creating detailed audit logs, and handling soft deletes and force deletes elegantly.

  • Core Functionality: Tracks changes to model attributes, including creation, updates, and soft deletes, by default.
  • Authentication Integration: Supports Sentry and Sentinel authentication systems for associating revisions with users.
  • Configuration: Allows customizing aspects such as fields to track, history limit, and whether to store creations and force deletes.
  • Flexibility: Supports both trait-based and class-based implementations, backwards compatible with existing installations.
  • Data Control: Enables controlling which fields are tracked and how deletions are handled.
  • Auditing: Provides comprehensive auditing capabilities with detailed revision logs.
  • Extensibility: Can be easily extended to accommodate custom logic and features.

Revisionable is a well-established and actively maintained package with a consistent release history and a responsive community. Recent commit activity indicates ongoing development and bug fixes. Comprehensive documentation is available, covering installation, configuration, and advanced features. The package has a significant number of stars and forks, signifying a wide adoption.

Developers who need to track changes to their Laravel model data will benefit from Revisionable. It's applicable in scenarios requiring data auditing, version control, or historical data analysis. It simplifies the process of maintaining a detailed record of model modifications compared to manual tracking or implementing custom revision systems.

Languages:
Summarize:
Share:
Stars
2,615
Forks
341
Issues
123
Created
13 years ago
Commit
6 months ago
License
MIT
Archived
No
Updated 6 days ago

Similar Repositories