hamidrezaniazi / laramist
Laravel model history package
1.0.2
2020-09-10 19:28 UTC
Requires
- php: ^7.2
- illuminate/support: ^5.8|^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-12-11 05:09:53 UTC
README
The logging model's changes have never been easier like this.
Installation
You can install the package via composer:
composer require hamidrezaniazi/laramist
You can publish the migration with:
php artisan vendor:publish --provider="Hamidrezaniazi\Laramist\LaramistServiceProvider" --tag="migrations"
After publishing the migration you can create the model_histories table by running the migrations:
php artisan migrate
Usage
You should just use the trait bellow in the model which you want log its changes.
use ModelHistoryTrait;
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email hamidrezaniazi@yahoo.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.