src/Services/InputCalibrator.php
public function placeholder($field, $column)
    {
        if (!is_array($field) && !in_array($field, $this->columnTypes)) {
            return ucfirst($field);
        }

        if (strpos($column, '[') > 0) {
            $nested = explode('[', str_replace(']', '', $column));
            $column = implode(' ', $nested);
        }

        $alt_name = (isset($field['alt_name'])) ? $field['alt_name'] : ucfirst($column);
        $placeholder = (isset($field['placeholder'])) ? $field['placeholder'] : $this->cleanString($alt_name);

        return $placeholder;
    }
public function placeholder($field, $column)
    {
        if (!is_array($field) && !in_array($field, $this->columnTypes)) {
            return ucfirst($field);
        }

        if (strpos($column, '[') > 0) {
            $nested = explode('[', str_replace(']', '', $column));
            $column = implode(' ', $nested);
        }

        $alt_name = (isset($field['alt_name'])) ? $field['alt_name'] : ucfirst($column);
        $placeholder = (isset($field['placeholder'])) ? $field['placeholder'] : $this->cleanString($alt_name);

        return $placeholder;
    }
public function placeholder ( $ field , $ column ) { if ( ! is_array ( $ field ) && ! in_array ( $ field , $ this -> columnTypes ) ) { return ucfirst ( $ field ) ; } if ( strpos ( $ column , '[' ) > 0 ) { $ nested = explode ( '[' , str_replace ( ']' , '' , $ column ) ) ; $ column = implode ( ' ' , $ nested ) ; } $ alt_name = ( isset ( $ field [ 'alt_name' ] ) ) ? $ field [ 'alt_name' ] : ucfirst ( $ column ) ; $ placeholder = ( isset ( $ field [ 'placeholder' ] ) ) ? $ field [ 'placeholder' ] : $ this -> cleanString ( $ alt_name ) ; return $ placeholder ; }
Create the placeholder.

@param array  $field  Field from Column Array
@param string $column Column name

@return string
Create the placeholder .