benjaminhansen/filament-logger
最新稳定版本:v1.0.4
Composer 安装命令:
composer require benjaminhansen/filament-logger
包简介
Log all user activity to file or log driver and preview it on your FilamentPHP panel
README 文档
README
Log all user activity to file or log driver and preview it on your FilamentPHP panel
Screenshots
Installation
composer require benjaminhansen/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(\BenjaminHansen\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.
Using
you can add a custom log from anywhere in your code by using this code
use BenjaminHansen\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"
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-02


