protected function validateInputDbInstall()
    {
        $this->validatePrompt('database.name', $this->text('Database name'), 'install');
        $this->validatePrompt('database.user', $this->text('Database user'), 'install', 'root');
        $this->validatePrompt('database.password', $this->text('Database password'), 'install', '');
        $this->validatePrompt('database.port', $this->text('Database port'), 'install', '3306');
        $this->validatePrompt('database.host', $this->text('Database port'), 'install', 'localhost');

        $this->validateInputDbTypeInstall();
    }
protected function validateInputDbInstall()
    {
        $this->validatePrompt('database.name', $this->text('Database name'), 'install');
        $this->validatePrompt('database.user', $this->text('Database user'), 'install', 'root');
        $this->validatePrompt('database.password', $this->text('Database password'), 'install', '');
        $this->validatePrompt('database.port', $this->text('Database port'), 'install', '3306');
        $this->validatePrompt('database.host', $this->text('Database port'), 'install', 'localhost');

        $this->validateInputDbTypeInstall();
    }
protected function validateInputDbInstall ( ) { $ this -> validatePrompt ( 'database.name' , $ this -> text ( 'Database name' ) , 'install' ) ; $ this -> validatePrompt ( 'database.user' , $ this -> text ( 'Database user' ) , 'install' , 'root' ) ; $ this -> validatePrompt ( 'database.password' , $ this -> text ( 'Database password' ) , 'install' , '' ) ; $ this -> validatePrompt ( 'database.port' , $ this -> text ( 'Database port' ) , 'install' , '3306' ) ; $ this -> validatePrompt ( 'database.host' , $ this -> text ( 'Database port' ) , 'install' , 'localhost' ) ; $ this -> validateInputDbTypeInstall ( ) ; }
Validate database details input
Validate database details input