protected function wrapField($item, $field)
{
$formGroup = file_get_contents($this->viewDirectoryPath . 'form-fields/wrap-field.blade.stub');
$labelText = "'" . ucwords(strtolower(str_replace('_', ' ', $item['name']))) . "'";
if ($this->option('localize') == 'yes') {
$labelText = 'trans(\'' . $this->crudName . '.' . $item['name'] . '\')';
}
return sprintf($formGroup, $item['name'], $labelText, $field);
}