Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Nova v5 #214

Open
pazazdigital opened this issue Dec 17, 2024 · 0 comments
Open

Doesn't work with Nova v5 #214

pazazdigital opened this issue Dec 17, 2024 · 0 comments

Comments

@pazazdigital
Copy link

Errors in IDE when adding to tools array
Undefined type 'Outl1ne\MenuBuilder\MenuBuilder'.

Also the following when migrating:

  INFO  Running migrations.  

  2019_11_08_000000_create_menus_table 
   Symfony\Component\ErrorHandler\Error\FatalError 

  Class OptimistDigital\MenuBuilder\MenuBuilder contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Laravel\Nova\Tool::menu)

  at vendor/outl1ne/nova-menu-builder/src/MenuBuilder.php:8
      4▕ 
      5▕ use Laravel\Nova\Nova;
      6▕ use Laravel\Nova\Tool;
      7▕ 
  ➜   8▕ class MenuBuilder extends Tool
      9▕ {
     10▕     protected static $defaultLinkableModels = [
     11▕         \OptimistDigital\MenuBuilder\Classes\MenuItemStaticURL::class,
     12▕         \OptimistDigital\MenuBuilder\Classes\MenuItemText::class,


   Whoops\Exception\ErrorException 

  Class OptimistDigital\MenuBuilder\MenuBuilder contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Laravel\Nova\Tool::menu)

  at vendor/outl1ne/nova-menu-builder/src/MenuBuilder.php:8
      4▕ 
      5▕ use Laravel\Nova\Nova;
      6▕ use Laravel\Nova\Tool;
      7▕ 
  ➜   8▕ class MenuBuilder extends Tool
      9▕ {
     10▕     protected static $defaultLinkableModels = [
     11▕         \OptimistDigital\MenuBuilder\Classes\MenuItemStaticURL::class,
     12▕         \OptimistDigital\MenuBuilder\Classes\MenuItemText::class,

      +1 vendor frames 

  2   [internal]:0
      Whoops\Run::handleShutdown()
      ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant