protected function getHtmlType($type)
    {
        $map = Config::getEloquentToHtmlMap();

        if (array_key_exists($type, $map)) {
            return $map[$type];
        }

        return 'text';
    }
protected function getHtmlType($type)
    {
        $map = Config::getEloquentToHtmlMap();

        if (array_key_exists($type, $map)) {
            return $map[$type];
        }

        return 'text';
    }
protected function getHtmlType ( $ type ) { $ map = Config :: getEloquentToHtmlMap ( ) ; if ( array_key_exists ( $ type , $ map ) ) { return $ map [ $ type ] ; } return 'text' ; }
Get the html type for a given field.

@param CrestApps\CodeGenerator\Models\Field $field
@param string $type

@return string
Get the html type for a given field .