nova-logs icon indicating copy to clipboard operation
nova-logs copied to clipboard

Using package in Custom menu

Open hybrid1969 opened this issue 1 year ago • 0 comments

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.

hybrid1969 avatar Oct 05 '23 08:10 hybrid1969