PHP code example of rabol / filament-logviewer

1. Go to this page and download the library: Download rabol/filament-logviewer 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/ */

    

rabol / filament-logviewer example snippets



// config for Rabol/FilamentLogviewer
return [
    'navigation_group' => 'System',
];


use Rabol\FilamentLogviewer\FilamentLogviewerPlugin;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            // ...
            ->plugin(
                FilamentLogviewerPlugin::make()
            );
    }
}
bash
php artisan vendor:publish --tag="filament-logviewer-config"
bash
php artisan vendor:publish --tag="filament-logviewer-views"