coloredcow/laravel-audit is a Laravel package for audit logging for laravel.
It currently has 4 GitHub stars and 527 downloads on Packagist (latest version 2.0.2).
Install it with composer require coloredcow/laravel-audit.
Discover more Laravel packages by coloredcow
or browse all Laravel packages to compare alternatives.
Last updated
A package to capture system activity in a Laravel application. Currently supports the following fields:
composer require coloredcow/laravel-auditColoredCow\LaravelAudit\AuditServiceProvider to config/app.php'providers' => [
ColoredCow\LaravelAudit\AuditServiceProvider::class
];
php artisan migrateColoredCow\LaravelAudit\Events\Auditable trait in the events you want to audit. And add this to the contructor of the event.$this->setAudit([
'ip' => 'ip-of-user-here',
'referer' => 'referer-address',
'action' => 'description of event and action being audited'
]);
ColoredCow\LaravelAudit\Listeners\AuditActivities listener to listen to the events to want to audit. Map it in the EventServiceProvider of your laravel application. AuditFacade::make(['action' => 'Audit Action']);
AuditFacade::make(['action' => 'Audit Action', 'ip' => 'My IP']);