nova-permission icon indicating copy to clipboard operation
nova-permission copied to clipboard

Sidebar Group

Open amidesfahani opened this issue 4 years ago • 6 comments

hi please make it possible to change sidebar $group name from a config file. like: Users -- User -- Roles & Permissions

public static $group = 'Users';

thanks

amidesfahani avatar May 22 '20 23:05 amidesfahani

I think you can publish the config files and change it from there (tag nova-permission-tool).

In my case, I have it in Spanish, so I changed resources/lang/vendor/nova-permission-tool/es/navigation.php. I changed it to Admin which was a group I already had and it worked.

rcubitto avatar Jul 15 '20 03:07 rcubitto

Hi. How do I "publish the config files"? (I'm new to Laravel.)

cja-github avatar Sep 01 '20 08:09 cja-github

@cja-github try with php artisan vendor:publish --tag=nova-permission-tool

rcubitto avatar Sep 01 '20 14:09 rcubitto

That returned:

Unable to locate publishable resources.
Publishing complete.

Nothing has been changed in the file system.

cja-github avatar Sep 01 '20 16:09 cja-github

@cja-github if you run php artisan vendor:publish alone, what are the options? Do you see it?

rcubitto avatar Sep 01 '20 17:09 rcubitto

php artisan vendor:publish --tag=nova-permission-tool-lang will publish the language resources in resources/lang/vendor/nova-permission-tool.

Edit your language(s) navigation.php in that folder to set your Sidebar Group.

babul avatar Sep 03 '20 20:09 babul