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

Using package in Custom menu #49

Open
hybrid1969 opened this issue Oct 5, 2023 · 0 comments
Open

Using package in Custom menu #49

hybrid1969 opened this issue Oct 5, 2023 · 0 comments

Comments

@hybrid1969
Copy link

I am currently using a custom menu but struggling to work out how to add the Log viewer tool back into the MainMenu. The closest I have managed so far is this -

Nova::mainMenu(function (Request $request) { return [ MenuSection::make('Logs', [ MenuItem::Resource(LogViewer::class)->canSee(function ($request) { $user = $request->user(); if ($user instanceof \App\Models\Admin) { // In the tenant app, only the owner of the tenant can view Nova return true; } return false; }), ])->icon('log')->collapsedByDefault(), });

    but I am getting the error-
    `Call to undefined method Arcanedev\LogViewer\LogViewer::label()`
    
    any guidance would be appreciated.
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