Level 56
Can you provide more code? I just tested it and it works for me:
public function handle()
{
$result = $this->choice( "Hello", [ "one", "two" ], 1 );
$this->info( $result ); // outputs result
}
1 like
Hi, in php artisan command the
$this->choice( "Hello", [ "one", "two"], 1 );
doesn't works, with error
[ERROR] Undefined index: one
I tried with string and integer but nothing...
Any ideas?
Please or to participate in this conversation.