A simple package for Laravel that provides model event logging services
Install this package with composer using the following command:
composer require techlify-inc/laravel-model-logger
Run migrations
$ php artisan migrate
Just add the following trait to models that needs logging:
use TechlifyInc\LaravelModelLogger\Traits\LoggableModel;
To disable logging for certain events, in your model, you can do:
protected $logCreated = false;
protected $logUpdated = false;
protected $logDeleted = false;