techlify / simple-inventory
A Module with that providers event logging for Laravel Models
Package info
github.com/techlify/simple-inventory-api
Type:package
pkg:composer/techlify/simple-inventory
0.2.1
2019-04-18 19:07 UTC
This package is not auto-updated.
Last update: 2026-03-01 13:05:45 UTC
README
A simple package for Laravel that provides model event logging services
Installation
Install this package with composer using the following command:
composer require techlify-inc/laravel-model-logger
Run migrations
$ php artisan migrate
Usage
Just add the following trait to models that needs logging:
use TechlifyInc\LaravelModelLogger\Traits\LoggableModel;
Configuring which events to Log
To disable logging for certain events, in your model, you can do:
protected $logCreated = false; protected $logUpdated = false; protected $logDeleted = false;