Skip to content

Commit

Permalink
add isResourceNavigationItemEnabled() function
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijmenKort authored Nov 16, 2022
1 parent 8c9aea5 commit d3d9fa4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Support/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ public static function getResourceSlug(): string
return (string) config('filament-shield.shield_resource.slug');
}

public static function isResourceNavigationItemEnabled(): bool
{
return config('filament-shield.shield_resource.show_in_navigation', true);
}

public static function getResourceNavigationSort(): int
{
return config('filament-shield.shield_resource.navigation_sort');
Expand Down

0 comments on commit d3d9fa4

Please sign in to comment.