public function fromArray(
        $array,
        $columns = null,
        $view = null,
        $class = null,
        $populated = true,
        $reformatted = false,
        $timestamps = false
    ) {
        $formBuild = [];

        if (is_null($class)) {
            $class = config('form-maker.forms.form-class', 'form-control');
        }

        $array = $this->cleanupIdAndTimeStamps($array, $timestamps, false);
        $errors = $this->getFormErrors();

        if (is_null($columns)) {
            $columns = $array;
        }

        foreach ($columns as $column => $columnConfig) {
            if (is_numeric($column)) {
                $column = $columnConfig;
            }
            if ($column === 'id') {
                $columnConfig = ['type' => 'hidden'];
            }

            $input = $this->inputMaker->create($column, $columnConfig, $array, $class, $reformatted, $populated);
            $formBuild[] = $this->formBuilder($view, $errors, $columnConfig, $column, $input);
        }

        return $this->buildUsingColumns($formBuild, config('form-maker.form.theme'));
    }