rollswan / audit-trail
A library package used to logs activities/transactions made in your application.
1.0.12
2021-09-08 14:41 UTC
Requires
- php: >=7.0.0
- jaybizzle/laravel-crawler-detect: 1.*
- laravelcollective/html: ^5.4|^5.5|^5.6|^5.7|^5.8|^6.0|^7.0
- rollswan/uuid: ^1.0.0
This package is auto-updated.
Last update: 2025-03-08 22:15:47 UTC
README
A library package used to logs activities/transactions made in your web application.
Installation
- Run in terminal:
composer require rollswan/audit-trail
- Register the package
-
Laravel 5.5 and up
Uses package auto discovery feature, no need to edit theconfig/app.php
file. -
Laravel 5.4 and below
Register the package with laravel inconfig/app.php
underproviders
with the following:
'providers' => [ Rollswan\AuditTrail\Providers\AuditTrailServiceProvider::class, ];
- Migrate
audit_trails
table by running:
php artisan migrate
- Publish config file by running:
php artisan vendor:publish --provider="Rollswan\AuditTrail\Providers\AuditTrailServiceProvider"
php artisan vendor:publish --tag="audit-trail"
How to use?
- Use
audit-trail
via middleware
Route::group(['middleware' => ['web', 'audit-trail']], function () { Route::get('/dashboard', 'HomeController@index')->name('dashboard'); });