This package allows you to easily add a log viewer to your Filament application. Inspired in rap2hpoutre/laravel-log-viewer
Require the package using composer:
composer require xavicabot/filament-log-viewer
Publish the assets:
php artisan vendor:publish --provider="Xavicabot\FilamentLogViewer\FilamentLogViewerServiceProvider"
This plugin adds a 'Log Viewer' functionality in your filament panel(s), letting you view your logs in a more user-friendly way.
use XaviCabot\FilamentLogViewer\FilamentLogViewerPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
FilamentLogViewerPlugin::make(),
])
}
Once you have published the assets, you can configure the package by editing the config/filament-log-viewer.php
file.