Filament-Shield Error Showing Two Roles Resource

so in my navigation resources i am having two roles rosource i already published the roles resource and changed the navigation group to 'Authentication' and i dont know where the Filament-Shield navigation group came out. so how to solve it?
No description
13 Replies
Expecto Patronum
Check the config file
Abuukar
AbuukarOP3d ago
i have done it more than once nothing is working.
Dan Mason
Dan Mason3d ago
#bezhansalleh-shield likely a configuration option with the plugin
awcodes
awcodes3d ago
You’re getting 2 of them because your override is in the panel autodiscovery path.
Dennis Koch
Dennis Koch2d ago
Why did you publish the resource? You can change the group via config.
Abuukar
AbuukarOPthis hour
I didn't get it enlighten me please?
Dennis Koch
Dennis Koch23h ago
You published the resource. That’s why you have 2. Your own and the one from the plugin.
Abuukar
AbuukarOP23h ago
in other projects i also published the resource and i didn't have this 2 , i always publish resource . i always publish the role resouce and i didn't get this 2 , except for this time , so now is there is a way to solve it ?
Dennis Koch
Dennis Koch23h ago
Read my message above: Why do you publish at all? You can change most stuff via config.
Abuukar
AbuukarOP22h ago
I publishe resources so i can see and change the navigationGroup and navigationSort , on the other hand I didn't know that I can change the those stuff via config file.
Dennis Koch
Dennis Koch20h ago
So is this solved now?
Abuukar
AbuukarOP15h ago
no still i have those 2 roles resource .
No description
Dan Mason
Dan Mason14h ago
The package should only be registering the package resource if it is not published. It uses this method to check if the panel already contains a RoleResource. https://github.com/bezhanSalleh/filament-shield/blob/8110cf901114703006ed56872ce46e1405c4efd5/src/Support/Utils.php#L20

Did you find this page helpful?