Skip to content

Using package in Custom menu #49

Open
@hybrid1969

Description

@hybrid1969

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions