diff --git a/README.md b/README.md index 61bade6..272c467 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ Table of contents - [Default](#default) - [Custom Permissions](#custom-permissions) - [Configure Permission Identifier](#configure-permission-identifier) + - [Custom Navigation Group](#custom-navigation-group) - [Pages](#pages) - [Pages Hooks](#pages-hooks) - [Pages Redirect Path](#pages-redirect-path) @@ -337,6 +338,20 @@ FilamentShield::configurePermissionIdentifierUsing( > **Warning** > Keep in mind that ensuring the uniqueness of the permission identifier is now up to you. +##### Custom Navigation Group +By default the english translation renders Roles and Permissions under 'Filament Shield' if you wish to change this, first publish the [translations files](#translations) and change the relative locale to the group of your choosing for example: + +```php +'nav.group' => 'Filament Shield', +``` + +to + +```php +'nav.group' => 'User Management', +``` +apply this to each lanugage you have groups in. + #### Pages If you have generated permissions for `Pages` you can toggle the page's navigation from sidebar and restricted access to the page. You can set this up manually but this package comes with a `HasPageShield` trait to speed up this process. All you have to do is use the trait in you pages: