sbine / nova-route-viewer

Route viewer tool for Laravel Nova
MIT License
59 stars 9 forks source link

Upgrade to Nova 4.0 #20

Open doobie-droid opened 1 month ago

doobie-droid commented 1 month ago

Hey there,

Are there any plans to upgrade the route viewer tool to be compatible with Nova 4.0 ? I followed the installation instructions as listed in the readme.md and landed upon the error

Upgrade to Nova 4.0 - PHP Fatal error: Class Sbine\RouteViewer\RouteViewer contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Laravel\Nova\Tool::menu)

I'm pretty sure the abstract method being referred to is the one in vendor/laravel/nova/src/Tool.php

/** 
* Build the menu that renders the navigation links for the tool. 
* 
* @param  \Illuminate\Http\Request  $request 
* @return mixed
*/
abstract public function menu(Request $request);

I would make a pr but it doesn't seem like there's much activity on the repo anymore given that the last pr made is unattended to

sbine commented 1 month ago

I don't currently use Nova but would be happy to accept a PR for this (thanks for the nudge about the last one ;))