How to add Filament Shield into a custom group in sidebar navigation?
I have a group set via a property:
that I use in every resource file to put them in the menu category Settings in my sidebar.
But I don't know where should I put this $navigationGroup property , in which file so it is moved to that ctegory as other resources with $navigationGroup set to Settings.
Because currently it is in its own group in the uppermost parent level.
In the config file I can only set true or false like:
In other words,
I have this:
And I want this:
protected static ?string $navigationGroup = "Settings";that I use in every resource file to put them in the menu category Settings in my sidebar.
But I don't know where should I put this $navigationGroup property , in which file so it is moved to that ctegory as other resources with $navigationGroup set to Settings.
Because currently it is in its own group in the uppermost parent level.
In the config file I can only set true or false like:
In other words,
I have this:
And I want this:
Solution
The author of the plugin responded with the answer in the shield channel, but I will put it here too, for posterity.
So, it's actually super easy at least for my needs.
You need to publish the translation files of Filament Shield like:
in the filament-shield.php file (inside your language directory so i.e. lang/vendor/filament-shield/de/filament-shield.php) of your language that you are using you change
So, it's actually super easy at least for my needs.
You need to publish the translation files of Filament Shield like:
php artisan vendor:publish --tag="filament-shield-translations" and thenin the filament-shield.php file (inside your language directory so i.e. lang/vendor/filament-shield/de/filament-shield.php) of your language that you are using you change
'nav.group' => 'Settings' where Settings will be the exact string you are using as a group name in protected static ?string $navigationGroup = "Settings" so If you have protected static ?string $navigationGroup = "Page settings" it will be 'nav.group' => 'Page settings'