iferas93 / historiable-model
Laravel Model history tracking
1.1.0
2020-06-05 20:42 UTC
Requires
- php: ^7.2.5
Requires (Dev)
- orchestra/canvas: ^5.4
- orchestra/testbench: ^5.3
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-02-06 08:04:22 UTC
README
Easy way to make and show your model history
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.