src/Console/Commands/BaseCommand.php
public function ask($question, $default = false)
    {
        $handler = $this->getHelper('question');
        $confirmation = new ConfirmationQuestion($question, $default);

        return $handler->ask($this->input, $this->output, $confirmation);
    }
public function ask($question, $default = false)
    {
        $handler = $this->getHelper('question');
        $confirmation = new ConfirmationQuestion($question, $default);

        return $handler->ask($this->input, $this->output, $confirmation);
    }
Ask the user a question.

@param $question
@param bool $default
@return mixed