diff --git a/README.md b/README.md index 33fc8c1..c7e0de1 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ return [ 'resource' => [ 'class' => EmailResource::class, 'model' => Email::class, + 'cluster' => null, 'group' => null, 'sort' => null, 'icon' => null, diff --git a/config/filament-email.php b/config/filament-email.php index 275fd24..b9061b0 100644 --- a/config/filament-email.php +++ b/config/filament-email.php @@ -8,6 +8,7 @@ 'resource' => [ 'class' => EmailResource::class, 'model' => Email::class, + 'cluster' => null, 'group' => null, 'sort' => null, 'icon' => null, diff --git a/src/Filament/Resources/EmailResource.php b/src/Filament/Resources/EmailResource.php index 5b3b9aa..fcc8e7c 100644 --- a/src/Filament/Resources/EmailResource.php +++ b/src/Filament/Resources/EmailResource.php @@ -42,6 +42,14 @@ public static function getBreadcrumb(): string return __('filament-email::filament-email.email_log'); } + /** + * @return class-string | null + */ + public static function getCluster(): ?string + { + return config('filament-email.resource.cluster'); + } + public static function getNavigationLabel(): string { return config('filament-email.label') ?? __('filament-email::filament-email.navigation_label');