Customizing navigation items

I don't want all the Resources to show up in the left menu.. I checked the docs and it says:
protected static bool $isHiddenInNavigation = true;
protected static bool $isHiddenInNavigation = true;
I added these flags and also fully cleared the cache, and they're still showing πŸ™ˆ Here is the auto-generated Panel that I'm using. Help? https://gist.github.com/dragoonis/384ab536aec9031a6d932774de92d4af
Gist
PanelProvider.php
GitHub Gist: instantly share code, notes, and snippets.
2 Replies
pauldragoonis
pauldragoonisβ€’4w ago
I tried to comment out 'discoverResources()' and then add this getResources() method
public function getResources(): array
{
return [
IngredientResource::class,
];
}
public function getResources(): array
{
return [
IngredientResource::class,
];
}
I checked, and it's not even calling this function, added a debug in there
Want results from more Discord servers?
Add your server