LaravelPackages.net
Acme Inc.
Toggle sidebar
tomatophp/filament-logger

Log all user activity to file or log driver and preview it on your FilamentPHP panel

2.373
15
v1.0.4
About tomatophp/filament-logger

tomatophp/filament-logger is a Laravel package for log all user activity to file or log driver and preview it on your filamentphp panel. It currently has 15 GitHub stars and 2.373 downloads on Packagist (latest version v1.0.4). Install it with composer require tomatophp/filament-logger. Discover more Laravel packages by tomatophp or browse all Laravel packages to compare alternatives.

Last updated

Screenshot

Filament logger

Latest Stable Version License Downloads

Log all user activity to file or log driver and preview it on your FilamentPHP panel

Screenshots

Logger View Log Log File

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.

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

Comments