diff --git a/config/filament-shield.php b/config/filament-shield.php index 7487bdb..5ad3216 100644 --- a/config/filament-shield.php +++ b/config/filament-shield.php @@ -10,6 +10,7 @@ 'is_globally_searchable' => false, 'show_model_path' => true, 'is_scoped_to_tenant' => true, + 'cluster' => env('FILAMENT_SHIELD_CLUSTER', null), ], 'auth_provider_model' => [ diff --git a/src/Resources/RoleResource.php b/src/Resources/RoleResource.php index 497447f..fc06cd4 100644 --- a/src/Resources/RoleResource.php +++ b/src/Resources/RoleResource.php @@ -164,6 +164,11 @@ public static function getNavigationGroup(): ?string : ''; } + public static function getCluster(): ?string + { + return config('filament-shield.shield_resource.cluster'); + } + public static function getNavigationLabel(): string { return __('filament-shield::filament-shield.nav.role.label');