hamidrezaniazi/laramist

Laravel model history package

1.0.2 2020-09-10 19:28 UTC

This package is auto-updated.

Last update: 2024-10-11 04:45:32 UTC


README

Latest Version on Packagist Build Status StyleCI Quality Score Total Downloads License

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.