This laravel package will allow your models to record the the created, updated and deleted by User FingerPrints
You can install the package via composer:
composer require managemize/laravel-fingerprints
Package Version | Laravel Version Support |
---|---|
^1.0 | 9.x |
^2.0 | 9.x |
Just rename the trait from your models from HasUserFingerPrint to HasFingerPrints
Add the trait to your models
use HasFingerPrints;
If you need to set custom fields for fingerprints :
protected array $userFingerPrintFields = [
'create' => 'created_by',
'update' => 'updated_by',
'delete' => 'deleted_by',
];
If you need to activate or deactivate a fingerprint for a model:
protected array $userFingerPrint = [
'create' => true, // false to deactivate
'update' => true, // false to deactivate
'delete' => true, // false to deactivate
];
composer test
php artisan test
Please see CHANGELOG for more information what has changed recently.
- Uuid support
Please see CONTRIBUTING for details.
If you discover any security related issues, please email managemize@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.