You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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(), });
The text was updated successfully, but these errors were encountered: