protected function createInputField($item)
    {
        $required = ($item['required'] === true) ? ", 'required' => 'required'" : "";

        return $this->wrapField(
            $item,
            "{!! Form::input('" . $this->typeLookup[$item['type']] . "', '" . $item['name'] . "', null, ['class' => 'form-control'$required]) !!}"
        );
    }
protected function createInputField($item)
    {
        $required = ($item['required'] === true) ? ", 'required' => 'required'" : "";

        return $this->wrapField(
            $item,
            "{!! Form::input('" . $this->typeLookup[$item['type']] . "', '" . $item['name'] . "', null, ['class' => 'form-control'$required]) !!}"
        );
    }
protected function createInputField ( $ item ) { $ required = ( $ item [ 'required' ] === true ) ? ", 'required' => 'required'" : "" ; return $ this -> wrapField ( $ item , "{!! Form::input('" . $ this -> typeLookup [ $ item [ 'type' ] ] . "', '" . $ item [ 'name' ] . "', null, ['class' => 'form-control'$required]) !!}" ) ; }
Create a generic input field using the form helper.

@param  string $item

@return string
Create a generic input field using the form helper .