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 Harrin15mo ago
Using a policy's viewAny method
IndomieRendang
IndomieRendang15mo ago
Great... then what about a Page class? I think I don't have model for a Page
Dan Harrin
Dan Harrin15mo ago
there is no single method you should disable navigation and then authorize in the mount() method
IndomieRendang
IndomieRendang15mo ago
Alright, already solved... thank you very much