eudu4rdo/laravelauditforge
最新稳定版本:0.0.2
Composer 安装命令:
composer require eudu4rdo/laravelauditforge
包简介
A Laravel package for auditing model changes.
README 文档
README
Laravel Audit Forge is a tool developed to integrate auditing features with Laravel, providing greater control over user actions. The key differentiator of Laravel Audit Forge is its support for queue usage, allowing for more efficient handling of auditing tasks.This version includes:
-
Database change auditing: It is possible to choose which models in your structure will be monitored when actions such as insertion, update, and deletion are performed.
-
Route auditing: Route auditing allows you to map the entire flow that your client followed within the application.
Requirements
- PHP 8.0 or higher.
- Laravel 9 or higher.
- Composer
Instalation
In the project terminal, run the command below:
composer require eudu4rdo/laravelauditforge
With the package installed, publish the migrations and configuration files:
php artisan vendor:publish --provider="eudu4rdo\laravelauditforge\AuditForgeServiceProvider"
Run the migrations.
Basic Usage
To perform basic usage of the application, simply use the Auditable trait in the model you wish to monitor:
use App\Traits\Auditable; class ExampleModel extends Model { use Auditable; // Other model configurations }
Configuration
The package provides flexible configurations to suit your auditing needs:
- Audit Events: Define the database connection, table, and primary key for logging events.
- Audit Routes: Enable route auditing, ignore specific routes or HTTP methods.
- User Settings: Link audit logs to users with customizable table and key settings.
- Job Processing: Optionally offload audit logging to Laravel's queue system. Customize these settings in the config/audit.php file after publishing the configuration.
Upcoming Features:
- Authentication audit.
License
This project is open-sourced software licensed under the MIT License.
Contact
For questions or suggestions, reach out on GitHub or contact the repository owner directly. My links:
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-06