Closed malle-pietje closed 8 months ago
The install is using plain "stable" Filament with a couple of plugins enabled.
For now I've solved the issue by creating a custom page that extends Saade\FilamentLaravelLog\Pages\ViewLog
and uses the HasPageShield
Trait provided by Shield like so:
<?php
namespace App\Filament\Pages;
use BezhanSalleh\FilamentShield\Traits\HasPageShield;
use Saade\FilamentLaravelLog\Pages\ViewLog;
class CustomLogs extends ViewLog
{
use HasPageShield;
public function getTitle(): string
{
return __('Application Logs');
}
}
To hide the default, built-in, page the plugin is configured like so in the PanelProvider
:
FilamentLaravelLogPlugin::make()
->navigationGroup('Logs')
->navigationLabel('Application Logs')
->navigationIcon('heroicon-o-bug-ant')
->navigationSort(1)
->slug('application_logs')
->authorize(
fn () => false // hides the built-in page
),
exactly same problem for me too
Im also facing the same issue.
Same issue here as well.
Hi,
Thanks for creating this plugin, I believe it's very useful!
One thing I discovered is when I add this callback for the
authorize()
method an Exception is thrown:This is the Exception:
Any clues on why this is happening?