nunomaduro / laravel-console-menu

🔘 Beautiful PHP CLI menus. Is a php-school/cli-menu wrapper for Laravel/Artisan Console Commands
MIT License
802 stars 40 forks source link

Submenu Issues #19

Closed taytus closed 5 years ago

taytus commented 5 years ago

I'm having issues with Submenus.

For some reason every time I create a subMenu, it jumps directly to the submenu instead of the main menu.

I think it must be some compatibility issue. Any plans to update the dependency to cli-menu 3.1?

nunomaduro commented 5 years ago

We are already using cli-menu:3.0 or bigger => "php-school/cli-menu": "^3.0".

You may need to talk with the php-school/cli-menu guys. This is just a wrapper.

taytus commented 5 years ago

Thank you Nuno. Do you have any idea what this error is related to?

composer require php-school/cli-menu
Using version ^3.1 for php-school/cli-menu   
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)         
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - nunomaduro/laravel-console-menu v1.0.3 requires php-school/cli-menu ^2.1 -> satisfiable by php-school/cli-menu[2.1.0] but these conflict with your requirements or minimum-stability.
    - nunomaduro/laravel-console-menu v1.0.3 requires php-school/cli-menu ^2.1 -> satisfiable by php-school/cli-menu[2.1.0] but these conflict with your requirements or minimum-stability.
    - nunomaduro/laravel-console-menu v1.0.3 requires php-school/cli-menu ^2.1 -> satisfiable by php-school/cli-menu[2.1.0] but these conflict with your requirements or minimum-stability.
    - Installation request for nunomaduro/laravel-console-menu (locked at v1.0.3, required as ^1.0) -> satisfiable by nunomaduro/laravel-console-menu[v1.0.3].

Installation failed, reverting ./composer.json to its original content.

Edit: I uninstalled this package, then I installed it again and now I have sub menus :)