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?
13 Replies
Check the config file
i have done it more than once nothing is working.
#bezhansalleh-shield likely a configuration option with the plugin
You’re getting 2 of them because your override is in the panel autodiscovery path.
Why did you publish the resource? You can change the group via config.
I didn't get it enlighten me please?
You published the resource. That’s why you have 2. Your own and the one from the plugin.
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 ?
Read my message above: Why do you publish at all? You can change most stuff via config.
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.
So is this solved now?
no still i have those 2 roles resource .
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