Skip to content

Commit

Permalink
Merge pull request #78 from gaetan-hexadog/feat-config-cluster
Browse files Browse the repository at this point in the history
Feat config cluster
  • Loading branch information
RickDBCN authored Sep 1, 2024
2 parents dcd27f9 + 33e7649 commit 79fc6c9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ return [
'resource' => [
'class' => EmailResource::class,
'model' => Email::class,
'cluster' => null,
'group' => null,
'sort' => null,
'icon' => null,
Expand Down
1 change: 1 addition & 0 deletions config/filament-email.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'resource' => [
'class' => EmailResource::class,
'model' => Email::class,
'cluster' => null,
'group' => null,
'sort' => null,
'icon' => null,
Expand Down
8 changes: 8 additions & 0 deletions src/Filament/Resources/EmailResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ public static function getBreadcrumb(): string
return __('filament-email::filament-email.email_log');
}

/**
* @return class-string<Cluster> | 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');
Expand Down

0 comments on commit 79fc6c9

Please sign in to comment.