PHP code example of laboiteacode / filament-logs-explorer
1. Go to this page and download the library: Download laboiteacode/filament-logs-explorer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
laboiteacode / filament-logs-explorer example snippets
use LaBoiteACode\FilamentLogsExplorer\FilamentLogsExplorerPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(FilamentLogsExplorerPlugin::make());
}
// config/filament-logs-explorer.php
'channels' => ['daily', 'single'], // empty array => auto-discover
'exclude_channels' => ['emergency'],
'expand_stacks' => true, // expand "stack" channels into their members
'files_per_channel' => 15,
FilamentLogsExplorerPlugin::make()
->navigationLabel('Application logs')
->navigationIcon('heroicon-o-bug-ant')
->activeNavigationIcon('heroicon-s-bug-ant')
->navigationGroup('System')
->navigationSort(99)
->navigationParentItem('Tools')
->navigationBadge() // show the number of channels as a badge
->registerNavigation(false) // keep the route, hide the menu entry
->slug('application-logs');