TappNetwork / filament-authentication-log

32 stars 14 forks source link

Adds a panel_id variable to config to allow specifying a panel #2

Closed mrailton closed 11 months ago

mrailton commented 11 months ago

Fixes #1

This adds a new config variable called panel_id (defaults to admin) which will allow a developer to specify which panel the logs will be shown on.

Currently the panel_id is hardcoded to the default of admin, this means if you are not using the admin panel then you are unable to use this plugin as it looks for the admin panel by id.

In my use case, I use Filament as the entire application and there is no specific admin area, so it makes sense for me to use a different ID other than admin.

I appreciate your time reviewing this PR, the plugin does exactly what I need with this simple config fix.

mrailton commented 11 months ago

@andreia Thanks for the tip, have put that change in now

andreia commented 11 months ago

@mrailton Thank you!