A Module with that providers event logging for Laravel Models
techlify-inc/laravel-model-logger is a Laravel package for a module with that providers event logging for laravel models.
It currently has 0 GitHub stars and 1.219 downloads on Packagist (latest version v0.2).
Install it with composer require techlify-inc/laravel-model-logger.
Discover more Laravel packages by techlify-inc
or browse all Laravel packages to compare alternatives.
Last updated
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;