Easy way to make and show your model history
You can install the package via composer:
composer require iferas93/historiable-model
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
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email ferasmo7mad@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.