Download the PHP package braankoo/eloquent-snapshot without Composer
On this page you can find all versions of the php package braankoo/eloquent-snapshot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download braankoo/eloquent-snapshot
More information about braankoo/eloquent-snapshot
Files in braankoo/eloquent-snapshot
Package eloquent-snapshot
Short Description Laravel Eloquent Snapshot is a lightweight package that enables automatic or manual snapshots of Eloquent model states. Ideal for audit trails, change tracking, or rollback functionality, this package stores historical records of model data in a flexible and efficient way.
License MIT
Informations about the package eloquent-snapshot
Eloquent Snapshot
Eloquent Snapshot is a Laravel package that provides functionality for storing and restoring snapshots of Eloquent models. This is useful for tracking changes, creating backups, or implementing undo functionality in your application.
Installation
Install the package via Composer:
Usage
Storing Snapshots
Use the EloquentSnapshotStoreService to store snapshots of Eloquent models:
Restoring Snapshots
Use the EloquentSnapshotRestoreService to restore snapshots of Eloquent models:
Filtering Snapshots
You can filter snapshots using the EloquentSnapshotFilter class:
Features
- Store snapshots of Eloquent models, arrays, or collections.
- Restore snapshots with optional filtering.
- Transactional operations for data integrity.
- Supports chunked inserts for large datasets.
Configuration
No additional configuration is required. The package uses Laravel's default database connection. All you have to do is run the migrations to create the necessary tables:
Contributing
Contributions are welcome! Please submit a pull request or open an issue for any bugs or feature requests.
License
This package is open-source and licensed under the MIT License.
All versions of eloquent-snapshot with dependencies
illuminate/database Version ^12.0
illuminate/console Version ^12.0