Skip to content

Commit

Permalink
Merge pull request #54 from carlosbarretoeng/patch-1
Browse files Browse the repository at this point in the history
Add ability to use FilamentPHP Clusters feature
  • Loading branch information
rupadana authored Jun 4, 2024
2 parents 2e9d145 + 86e0b10 commit e2fe183
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ php artisan vendor:publish --tag=api-service-config
return [
'navigation' => [
'token' => [
'cluster' => null,
'group' => 'User',
'sort' => -1,
'icon' => 'heroicon-o-key'
Expand Down
1 change: 1 addition & 0 deletions config/api-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
return [
'navigation' => [
'token' => [
'cluster' => null,
'group' => 'User',
'sort' => -1,
'icon' => 'heroicon-o-key',
Expand Down
5 changes: 5 additions & 0 deletions src/Resources/TokenResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ public static function getPages(): array
];
}

public static function getCluster(): ?string
{
return config('api-service.navigation.token.cluster', null);
}

public static function getNavigationGroup(): ?string
{
return config('api-service.navigation.token.group') ?? config('api-service.navigation.group.token');
Expand Down

0 comments on commit e2fe183

Please sign in to comment.