essell
need help with log-viewer in filasment 3 panel
<?php
namespace App\Filament\Pages;
use Filament\Pages\Page;
class LogViewerDashboard extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static string $view = 'filament.pages.log-viewer-dashboard';
protected static ?string $title = '';
public static function shouldRegisterNavigation(): bool
{
return auth()->user()->hasRole('SysOp');
}
public static function canAccess(): bool
{
return auth()->user()->hasRole('SysOp');
}
public static function getNavigationGroup(): ?string
{
return 'SysOp Tools';
}
public static function getNavigationLabel(): string
{
return 'Log Viewer';
}
}
5 replies