How to "disable" filament page/resource instantly?

Is there a way to enable/disable filament page or resource in very short way? Not only in navigation menu but also make it totally unavailable without deleting it.
4 Replies
Dan Harrin
Dan Harrin2y ago
Using a policy's viewAny method
IndomieRendang
IndomieRendangOP2y ago
Great... then what about a Page class? I think I don't have model for a Page
Dan Harrin
Dan Harrin2y ago
there is no single method you should disable navigation and then authorize in the mount() method
IndomieRendang
IndomieRendangOP2y ago
Alright, already solved... thank you very much
Want results from more Discord servers?
Add your server