diff --git a/config/resource-lock.php b/config/resource-lock.php index 5b0eb7e..ad40ba8 100644 --- a/config/resource-lock.php +++ b/config/resource-lock.php @@ -81,6 +81,7 @@ 'navigation_group' => 'Settings', 'navigation_sort' => 1, 'limited_access' => false, + 'should_register_navigation' => true, // 'gate' => '' ], diff --git a/src/Resources/ResourceLockResource.php b/src/Resources/ResourceLockResource.php index 4ef04b8..1253163 100644 --- a/src/Resources/ResourceLockResource.php +++ b/src/Resources/ResourceLockResource.php @@ -136,4 +136,9 @@ public static function getNavigationSort(): ?int { return config('resource-lock.manager.navigation_sort'); } + + public static function shouldRegisterNavigation(): bool + { + return config('resource-lock.manager.should_register_navigation', true); + } }