protected function userSetup()
    {
        $this->output->writeln(<<<STEP
<fg=yellow>
*-----------------------------------------------*
|                                               |
|            Configure Default User             |
|                                               |
*-----------------------------------------------*
</fg=yellow>
STEP
        );

        $first = $this->ask('Please enter the user first name');
        $last  = $this->ask('Please enter the user last name');
        $email = $this->ask('Please enter the user email');
        $pass  = $this->userSetupPassword();

        $headers = [
          'Setting',
          'Value'
        ];

        $data = [
          ['First Name', $first],
          ['Last Name', $last],
          ['Email', $email],
          ['Password', $pass],
        ];

        $this->table($headers, $data);

        if (!$this->confirm('Is the user information correct?')) {
            $this->userSetup();
        }

        $this->user = [
          'first' => $first,
          'last'  => $last,
          'email' => $email,
          'pass'  => $pass,
        ];

        $this->info('User configuration saved.');
    }
protected function userSetup()
    {
        $this->output->writeln(<<<STEP
<fg=yellow>
*-----------------------------------------------*
|                                               |
|            Configure Default User             |
|                                               |
*-----------------------------------------------*
</fg=yellow>
STEP
        );

        $first = $this->ask('Please enter the user first name');
        $last  = $this->ask('Please enter the user last name');
        $email = $this->ask('Please enter the user email');
        $pass  = $this->userSetupPassword();

        $headers = [
          'Setting',
          'Value'
        ];

        $data = [
          ['First Name', $first],
          ['Last Name', $last],
          ['Email', $email],
          ['Password', $pass],
        ];

        $this->table($headers, $data);

        if (!$this->confirm('Is the user information correct?')) {
            $this->userSetup();
        }

        $this->user = [
          'first' => $first,
          'last'  => $last,
          'email' => $email,
          'pass'  => $pass,
        ];

        $this->info('User configuration saved.');
    }
protected function userSetup ( ) { $ this -> output -> writeln ( <<<STEP
<fg=yellow>
*-----------------------------------------------*
|                                               |
|            Configure Default User             |
|                                               |
*-----------------------------------------------*
</fg=yellow>
STEP ) ; $ first = $ this -> ask ( 'Please enter the user first name' ) ; $ last = $ this -> ask ( 'Please enter the user last name' ) ; $ email = $ this -> ask ( 'Please enter the user email' ) ; $ pass = $ this -> userSetupPassword ( ) ; $ headers = [ 'Setting' , 'Value' ] ; $ data = [ [ 'First Name' , $ first ] , [ 'Last Name' , $ last ] , [ 'Email' , $ email ] , [ 'Password' , $ pass ] , ] ; $ this -> table ( $ headers , $ data ) ; if ( ! $ this -> confirm ( 'Is the user information correct?' ) ) { $ this -> userSetup ( ) ; } $ this -> user = [ 'first' => $ first , 'last' => $ last , 'email' => $ email , 'pass' => $ pass , ] ; $ this -> info ( 'User configuration saved.' ) ; }
Setup the user credentials.

@return void
Setup the user credentials .