diff --git a/config/filament-logger.php b/config/filament-logger.php index 265a872..b4a458d 100644 --- a/config/filament-logger.php +++ b/config/filament-logger.php @@ -4,12 +4,15 @@ 'date_format' => 'd/m/Y', 'activity_resource' => \Z3d0X\FilamentLogger\Resources\ActivityResource::class, + 'scoped_to_tenant' => true, + 'navigation_sort' => null, 'resources' => [ 'enabled' => true, 'log_name' => 'Resource', 'logger' => \Z3d0X\FilamentLogger\Loggers\ResourceLogger::class, 'color' => 'success', + 'exclude' => [ //App\Filament\Resources\UserResource::class, ], diff --git a/src/Resources/ActivityResource.php b/src/Resources/ActivityResource.php index 6c79d68..05343e2 100644 --- a/src/Resources/ActivityResource.php +++ b/src/Resources/ActivityResource.php @@ -331,4 +331,16 @@ public static function getNavigationIcon(): string { return __('filament-logger::filament-logger.nav.log.icon'); } + + public static function isScopedToTenant(): bool + { + return config('filament-logger.scoped_to_tenant', true); + } + + public static function getNavigationSort(): ?int + { + return config('filament-logger.navigation_sort', null); + } + + }