arbory / request-logger
Arbory admin request logger
Installs: 1 968
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 4
Open Issues: 1
Requires
- arbory/arbory: ^3
- laravel/framework: ^v10
Requires (Dev)
- cubesystems/static-analysers: ^3.1
- orchestra/testbench: ^v8.22
- psr/simple-cache: ^2
README
Require arbory/request-logger via composer
composer require arbory/request-logger
Publish config files and translations
php artisan vendor:publish --provider="Arbory\AdminLog\AdminLogServiceProvider" --tag="config" php artisan vendor:publish --provider="Arbory\AdminLog\AdminLogServiceProvider" --tag="translations"
Run migrations
php artisan migrate
Enable module by adding to config config/arbory.php
and register routes in routes/admin.php
'menu' => [ ... \Arbory\AdminLog\Http\Controllers\Admin\AdminLogController::class ]
Admin::modules()->register(\Arbory\AdminLog\Http\Controllers\Admin\AdminLogController::class);
Usage
Configure sanitized data
Add your own sensitive words, keys, patterns to blacklist in sanitizer
section of config/admin-log.php
.
Schedule cleaning up of old logs
Add arbory:cleanup-admin-log
to your app schedule to clean old log entries.
By default this will delete all records older than 365 days.
You can specify other retain period in configuration config/admin-log
, updating retain_for_days
parameter.