Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Navigation Group #105

Closed
martingrondein-nls opened this issue Aug 23, 2022 · 4 comments
Closed

Custom Navigation Group #105

martingrondein-nls opened this issue Aug 23, 2022 · 4 comments

Comments

@martingrondein-nls
Copy link

Hi there, I can't seem to place this plugin into a custom nav group - I want to place access to this plugin, so it can sit with the rest of my nav items under 'System' nav group.

These seem to be the only 3 nav options we have:

    'shield_resource' => [
        'navigation_sort' => -1,
        'navigation_badge' => true,
        'navigation_group' => false,

Would like something like:

    'shield_resource' => [
        'navigation_custom_group' => 'System',
@lloricode
Copy link

i think you can set translation for this
Screenshot_2022-08-24_21-01-43

@lloricode
Copy link

run php artisan vendor:publish, then select number of filament-shield-translations

@lloricode
Copy link

after the file publish, you can paste this

<?php

return [
    'nav.group' => 'Access',
];

since this is the only you want to edit, and it will automatically merge all translation from vendor level

@bezhanSalleh
Copy link
Owner

@martingrondein-nls since the nav group can be translatable, having it in the config makes it useless.
and as @lloricode said, the nav group can be set through translations...
another option would be to extend Shield's RoleResource and overried the nav group method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants