Using Laravel 5.2 (currently the latest release) is looping when using the artisan function choice(). My code is basic:
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class TestCommand extends Command
{
protected $signature = 'function:menu';
public function handle() {
$this->choice('select yes', ['yes']);
}
}
When I run
php artisan function:menu
I get
select yes:
[0] yes
>
[ERROR] Undefined variable: output
select yes:
[0] yes
>
[ERROR] Undefined variable: output
It loops through that non-stop without waiting for input. It works fine on Windows 7 and Debian GNU/Linux 8 (jessie), but a fresh install of laravel on CentOS release 5.11 (Final) does this. Does anyone know why?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire