laravelauditforge maintained by eudu4rdo
Laravel Audit Forge
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: