From f0df7eddbf3df145d6aa9e1d8dc2cf46045b0989 Mon Sep 17 00:00:00 2001 From: Tony Partridge Date: Wed, 26 Apr 2023 12:33:17 +0100 Subject: [PATCH] Add Group Naming change howto --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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: