You can install the package via composer:
composer require ghoni-jee/model-tracker
You can publish and custom Blueprint Macro Or Model Trait with:
php artisan vendor:publish --provider="GhoniJee\ModelTracker\ModelTrackerServiceProvider"
- Add Model tracker to model migration
....
public function up()
{
Schema::create('users', function (Blueprint $table) {
....
$table->modelTracker();
});
}
...
- Add Model Tracker Trait to Model
class User extends Authenticatable
{
use ModelTracker;
....
}
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT).