/**
  * Run the installation helper.
  *
  * @return void
  */
 public function install()
 {
     if (!$this->command->output->confirm('Would you like set the application namespace?', true)) {
         return;
     }
     $helper = $this->command->getHelper('question');
     $question = new Question('Namespace (App):', 'App');
     $namespace = $helper->ask($this->command->input, $this->command->output, $question);
     $this->command->output->writeln('<info>Setting application namespace</info>...</info>');
     $process = (new Process('php artisan app:name ' . $namespace, $this->command->path))->setTimeout(null);
     if ('\\' !== DIRECTORY_SEPARATOR && file_exists('/dev/tty') && is_readable('/dev/tty')) {
         $process->setTty(true);
     }
     /**
      * Replace namespaces in known files that command doesn't hit
      */
     $this->setConfigNamespaces($namespace);
     $this->setSeedNamespaces($namespace);
     /**
      * Run the native command
      */
     $process->run(function ($type, $line) {
         $this->command->output->write($line);
     });
     if (!$process->isSuccessful()) {
         throw new ProcessFailedException($process);
     }
 }
 /**
  * Run the installation helper.
  *
  * @return void
  */
 public function install()
 {
     if ($this->command->dependencies_installed) {
         if (!$this->command->output->confirm('Would you like set database credentials?', true)) {
             return;
         }
         $helper = $this->command->getHelper('question');
         $question = new Question('Connection (mysql):', 'mysql');
         $connection = $helper->ask($this->command->input, $this->command->output, $question);
         $this->setConnection($connection);
         $question = new Question('Host (127.0.0.1):', '127.0.0.1');
         $host = $helper->ask($this->command->input, $this->command->output, $question);
         $this->setHost($host);
         $question = new Question('Port (3306):', '3306');
         $port = $helper->ask($this->command->input, $this->command->output, $question);
         $this->setPort($port);
         $question = new Question('Database Name (homestead):', 'homestead');
         $database = $helper->ask($this->command->input, $this->command->output, $question);
         $this->setDatabase($database);
         $question = new Question('Username (homestead):', 'homestead');
         $username = $helper->ask($this->command->input, $this->command->output, $question);
         $this->setUsername($username);
         $question = new Question('Password (secret):', 'secret');
         $password = $helper->ask($this->command->input, $this->command->output, $question);
         $this->setPassword($password);
         $this->command->database_set = true;
         $this->command->output->writeln('<info>Database Credentials Set!</info>');
     }
     return;
 }
 /**
  * Run the installation helper.
  *
  * @return void
  */
 public function install()
 {
     if ($this->command->migrations_run) {
         if (!$this->command->output->confirm('Would you like to set the credentials to the administrator account?', true)) {
             return;
         }
         $helper = $this->command->getHelper('question');
         $question = new Question('Name (Admin Istrator):', 'Admin Istrator');
         $name = $helper->ask($this->command->input, $this->command->output, $question);
         $this->setName($name);
         $question = new Question('E-mail (admin@admin.com):', '*****@*****.**');
         $email = $helper->ask($this->command->input, $this->command->output, $question);
         $this->setEmail($email);
         $question = new Question('Password (1234):', '1234');
         $password = $helper->ask($this->command->input, $this->command->output, $question);
         $this->setPassword($password);
         $this->command->output->writeln('<info>Administrator Account Information Set!</info>');
     }
     return;
 }