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.');
    }