Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-fingerprints maintained by managemize

Description
Laravel FingerPrints for models
Last update
2023/01/11 01:50 (2.x-dev)
License
Downloads
17

Comments
comments powered by Disqus

managemize/laravel-fingerprints

Latest Version on Packagist Total Downloads GitHub Actions

This laravel package will allow your models to record the the created, updated and deleted by User FingerPrints

Installation

You can install the package via composer:

composer require managemize/laravel-fingerprints

Laravel Support

Package Version Laravel Version Support
^1.0 9.x
^2.0 9.x

Upgrade from v1 to v2

Just rename the trait from your models from HasUserFingerPrint to HasFingerPrints

Usage

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
];

Testing

composer test
php artisan test

Changelog

Please see CHANGELOG for more information what has changed recently.

TODO

  • Uuid support

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email managemize@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.