nova-logs
nova-logs copied to clipboard
Using package in Custom menu
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.