tomatophp / filament-logger
Log all user activity to file or log driver and preview it on your FilamentPHP panel
Fund package maintenance!
Requires
- php: ^8.2
- ext-json: *
- filament/filament: ^5.0
- illuminate/http: ^12.0|^13.0
- illuminate/support: ^12.0|^13.0
- monolog/monolog: ^2.9|^3.6
- tomatophp/console-helpers: ^1.1
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.24
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^4.0|^5.0
- pestphp/pest-plugin-laravel: ^4.0|^5.0
- pestphp/pest-plugin-livewire: ^4.0|^5.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Filament logger
Log all user activity to file or log driver and preview it on your FilamentPHP panel
Screenshots
Version Compatibility
| Plugin | Filament | Laravel | PHP |
|---|---|---|---|
1.x (v3 branch) |
3.x | 10.x | 11.x | 8.1+ |
| 5.x | 5.x | 12.x | 13.x | 8.2+ |
Installation
composer require tomatophp/filament-logger
after install your package please run this command
php artisan filament-logger:install
finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
->plugin(\TomatoPHP\FilamentLogger\FilamentLoggerPlugin::make())
after install please publish the config file by using this command
php artisan vendor:publish --tag="filament-logger-config"
on your filament-logger.php config file please add the guard of user or middleware you went to track
'guards' => [ 'web', 'auth:accounts' ],
to track your panel
'guards' => [ 'web', 'panel:admin' ],
where admin is the id of the panel.
Upgrading from 1.x
TomatoPHP\FilamentLogger\EventServiceProviderwas removed; the package subscribes its request listener itself. If you worked around the duplicate verification emails (#5) with a custom provider ordont-discover, remove it.- Run
php artisan migrateafter updating.
Using
you can add a custom log from anywhere in your code by using this code
use TomatoPHP\FilamentLogger\Facades\FilamentLogger; FilamentLogger::log(message:'Your message here', level:'info');
Publish Assets
you can publish config file by use this command
php artisan vendor:publish --tag="filament-logger-config"
you can publish languages file by use this command
php artisan vendor:publish --tag="filament-logger-lang"
you can publish migrations file by use this command
php artisan vendor:publish --tag="filament-logger-migrations"
Other Filament Packages
Checkout our Awesome TomatoPHP





