public function fromTable(
        $table,
        $columns = null,
        $class = null,
        $view = null,
        $reformatted = true,
        $populated = false,
        $idAndTimestamps = false
    ) {
        $formBuild = [];

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

        $tableColumns = $this->getTableColumns($table, true);
        if (is_null($columns)) {
            foreach ($tableColumns as $column => $value) {
                $columns[$column] = $value['type'];
            }
        }

        if (!$idAndTimestamps) {
            unset($columns['id']);
            unset($columns['created_at']);
            unset($columns['updated_at']);
            unset($columns['deleted_at']);
        }

        foreach ($columns as $column => $columnConfig) {
            if (is_numeric($column)) {
                $column = $columnConfig;
            }

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

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