Closed crlcu closed 6 years ago
Ah, got it, I wasn't required the right package.
@crlcu How did you fix it?
I solved this:
use NunoMaduro\LaravelConsoleMenu\Menu;
class menuCommand extends Command
{...
public function handle()
{
$menu = new Menu('Pizza menu', [
'Freshly baked muffins',
'Freshly baked croissants',
'Turnovers, crumb cake, cinnamon buns, scones',
])->open();
$option = $menu
->disableDefaultItems()
->open();
$this->info("You have chosen the option number #$option");
}
...}
Hi, I have just created a new console command:
and I doesn't seem to work.
This is the error that I'm getting:
Any idea what's wrong ?