Download the PHP package robmellett/laravel-model-history without Composer
On this page you can find all versions of the php package robmellett/laravel-model-history. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download robmellett/laravel-model-history
More information about robmellett/laravel-model-history
Files in robmellett/laravel-model-history
Package laravel-model-history
Short Description A simple trait to add to your models so you can store CREATED and UPDATED differences
License MIT
Homepage https://github.com/robmellett/laravel-model-history
Informations about the package laravel-model-history
Track model history
This little package will create a history_events
table, so that you can track model Created and Updated events, along with the data changing between updates.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
You can add the Historize
trait to your model, and the CREATED and UPDATED events will be fired when the model is created and updated.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Rob Mellett
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-model-history with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^9.0|^10.0|^11.0