Skip to content

Commit

Permalink
Merge pull request #187 from tonypartridge/patch-1
Browse files Browse the repository at this point in the history
Add Group Naming change howto
  • Loading branch information
bezhanSalleh authored Jul 31, 2023
2 parents f9b57c0 + f0df7ed commit c937760
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c937760

Please sign in to comment.