Skip to content

iFeras93/historiable-model

Repository files navigation

Historiable Model

Latest Version on Packagist Build Status Quality Score Total Downloads

Easy way to make and show your model history

History List

History Details

Installation

You can install the package via composer:

composer require iferas93/historiable-model

Usage

This package create "histories" table. Publish the migration and the configuration file using

php artisan historiable:install

After that you can add the trait Histroiable on any model like:

use Iferas93\HistoriableModel\Traits\History\Histroiable;

class Artical extends Model
{
    //this line for applying historiable to Article Model
    use Historiable;

    //this function for igonred cloumns from historiable
    protected function ignoredColumns()
        {
            return [
                'updated_at',
                'slug'
            ];
        }
}

You can access Histories(Changelog) Table from:

http://domain.exmaple/changelog

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 ferasmo7mad@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.