saade / filament-laravel-log

Read Laravel logs from the Filament admin panel
https://filamentphp.com/plugins/saade-laravel-log
MIT License
88 stars 21 forks source link

Plugin [filament-laravel-log] is not registered for panel [admin]. Can not add this to custom admin panel #41

Open subhadipghorui opened 4 months ago

subhadipghorui commented 4 months ago

I want this plugin only on developer admin panel. But I am getting this exception on adding it to developer admin panel.

Plugin [filament-laravel-log] is not registered for panel [admin].

To fix this I need to also add this with default admin panel, then I can use it to other admin panel, like in my case developer admin panel.

Kindly fix this, so that we can use this separately to custom admin panel page.

Default admin panel

return $panel
            ->default()
            ->id('admin')
            ->path('admin')
.....
->plugins([
                FilamentLaravelLogPlugin::make()
                    ->navigationGroup('System Tools')
                    ->navigationLabel('Logs')
                    ->navigationIcon('heroicon-o-bug-ant')
                    ->navigationSort(1)
                    ->slug('logs')
            ]);

Custom admin panel

 return $panel
            ->id('developer')
            ->path('developer')
.....
->plugins([
                FilamentLaravelLogPlugin::make()
                    ->navigationGroup('System Tools')
                    ->navigationLabel('Logs')
                    ->navigationIcon('heroicon-o-bug-ant')
                    ->navigationSort(1)
                    ->slug('logs')
            ]);
hugoboss17 commented 1 month ago

this is not a problem of this package, as I'm having the exact same issue using the curator plugin.