How to hide menu under condition?
Hi Everyone,
Is there a method to hide the side menu based on a condition? For example, in the user table, I have a
social_login
column. If social_login
has a value of 1, I want to hide a specific menu item (e.g., Settings).
Any suggestions?Solution:Jump to solution
if you are using a resource: https://filamentphp.com/docs/3.x/panels/resources/getting-started#authorization
if you are using a custom page: https://filamentphp.com/docs/3.x/panels/pages#authorization...
2 Replies
Solution
if you are using a resource: https://filamentphp.com/docs/3.x/panels/resources/getting-started#authorization
if you are using a custom page: https://filamentphp.com/docs/3.x/panels/pages#authorization
It works Thanks @Leandro Ferreira