original_string: protected function databaseSetup()
      {
          $this->output->writeln(<<<STEP
  <fg=yellow>
  *-----------------------------------------------*
  |                                               |
  |              Configure Database               |
  |         This package uses MySQL Only          |
  |                                               |
  *-----------------------------------------------*
  </fg=yellow>
  STEP
          );
  
          $host = $this->anticipate('Please enter the database host',
            ['localhost']);
          $name = $this->anticipate('Please enter the database name',
            ['homestead']);
          $user = $this->anticipate('Please enter the database user',
            ['homestead']);
          $pass = $this->databaseSetupPassword();
  
          $headers = [
            'Setting',
            'Value',
          ];
  
          $data = [
            ['Host', $host],
            ['Name', $name],
            ['User', $user],
            ['Password', $pass],
          ];
  
          $this->table($headers, $data);
  
          if (!$this->confirm('Is the database info correct?')) {
              $this->databaseSetup();
          }
  
          $this->database = [
            'host' => $host,
            'name' => $name,
            'user' => $user,
            'pass' => $pass,
          ];
  
          $this->info('Database configuration saved.');
      }
code: protected function databaseSetup()
      {
          $this->output->writeln(<<<STEP
  <fg=yellow>
  *-----------------------------------------------*
  |                                               |
  |              Configure Database               |
  |         This package uses MySQL Only          |
  |                                               |
  *-----------------------------------------------*
  </fg=yellow>
  STEP
          );
  
          $host = $this->anticipate('Please enter the database host',
            ['localhost']);
          $name = $this->anticipate('Please enter the database name',
            ['homestead']);
          $user = $this->anticipate('Please enter the database user',
            ['homestead']);
          $pass = $this->databaseSetupPassword();
  
          $headers = [
            'Setting',
            'Value',
          ];
  
          $data = [
            ['Host', $host],
            ['Name', $name],
            ['User', $user],
            ['Password', $pass],
          ];
  
          $this->table($headers, $data);
  
          if (!$this->confirm('Is the database info correct?')) {
              $this->databaseSetup();
          }
  
          $this->database = [
            'host' => $host,
            'name' => $name,
            'user' => $user,
            'pass' => $pass,
          ];
  
          $this->info('Database configuration saved.');
      }
code_tokens: protected function databaseSetup ( ) { $ this -> output -> writeln ( <<<STEP
  <fg=yellow>
  *-----------------------------------------------*
  |                                               |
  |              Configure Database               |
  |         This package uses MySQL Only          |
  |                                               |
  *-----------------------------------------------*
  </fg=yellow>
  STEP ) ; $ host = $ this -> anticipate ( 'Please enter the database host' , [ 'localhost' ] ) ; $ name = $ this -> anticipate ( 'Please enter the database name' , [ 'homestead' ] ) ; $ user = $ this -> anticipate ( 'Please enter the database user' , [ 'homestead' ] ) ; $ pass = $ this -> databaseSetupPassword ( ) ; $ headers = [ 'Setting' , 'Value' , ] ; $ data = [ [ 'Host' , $ host ] , [ 'Name' , $ name ] , [ 'User' , $ user ] , [ 'Password' , $ pass ] , ] ; $ this -> table ( $ headers , $ data ) ; if ( ! $ this -> confirm ( 'Is the database info correct?' ) ) { $ this -> databaseSetup ( ) ; } $ this -> database = [ 'host' => $ host , 'name' => $ name , 'user' => $ user , 'pass' => $ pass , ] ; $ this -> info ( 'Database configuration saved.' ) ; }
docstring: Setup the database credentials.
  
  @return void
docstring_tokens: Setup the database credentials .