Configurable activity logger for filament.
Powered by spatie/laravel-activitylog
You can choose what you want to log.
- Log Resource(Model) Events
- Log Login Event
- Log Notification Events
- Easily extendable to log custom model events
You can install the package via composer:
composer require z3d0x/filament-logger
You can publish the config file with:
php artisan vendor:publish --tag="filament-logger-config"
This is the contents of the published config file:
<?php
return [
'resources' => [
'enabled' => true,
'log_name' => 'Resource',
'logger' => \Z3d0X\FilamentLogger\Loggers\ResourceLogger::class,
'color' => 'success',
'exclude' => [
//UserResource::class,
],
],
'access' => [
'enabled' => true,
'logger' => \Z3d0X\FilamentLogger\Loggers\AccessLogger::class,
'color' => 'danger',
'log_name' => 'Access',
],
'notifications' => [
'enabled' => true,
'logger' => \Z3d0X\FilamentLogger\Loggers\NotificationLogger::class,
'color' => null,
'log_name' => 'Notification',
],
'custom' => [
// [
// 'name' => 'Custom',
// 'color' => 'primary',
// ]
]
];
- Log
spatie/laravel-settings
- Publishable
ActivityResource
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.