Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Menu #14

Open
Peace-N opened this issue Sep 16, 2024 · 0 comments
Open

Custom Menu #14

Peace-N opened this issue Sep 16, 2024 · 0 comments

Comments

@Peace-N
Copy link

Peace-N commented Sep 16, 2024

Am trying to register settings to custom menu -- clas can not be called statically when i register the contact.

MenuSection::make(__('Settings'), [ MenuItem::resource(Contact::class) ])->icon('cog')->collapsable()->canSee(function (NovaRequest $request) { return $request->user()->can('viewPermission'); }),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant