Devise\Support\Installer\InstallerController::postDatabase PHP Method

postDatabase() public method

Save the database
public postDatabase ( ) : Redirect
return Redirect
    public function postDatabase()
    {
        $type = $this->Input->get('database_default');
        $host = $this->Input->get('database_host');
        $name = $this->Input->get('database_name');
        $username = $this->Input->get('database_username');
        $password = $this->Input->get('database_password');
        $this->InstallWizard->saveDatabase($type, $host, $name, $username, $password);
        if ($this->InstallWizard->errors) {
            return $this->Redirect->to('install/database')->withErrors($this->InstallWizard->errors)->with('message-errors', 'Error')->withInput();
        }
        return $this->Redirect->to('install/application');
    }