original_string: public static function generateLabel($field)
      {
          $label = Str::title(str_replace('_', ' ', $field['fieldName']));
          $template = "{!! Form::label('\$FIELD_NAME\$', '\$FIELD_NAME_TITLE\$:', ['class' => 'form-control-label $FIELD_NAME_TITLE$']) !!}";
          $template = str_replace('$FIELD_NAME_TITLE$', $label, $template);
          $template = str_replace('$FIELD_NAME$', $field['fieldName'], $template);
          return $template;
      }
code: public static function generateLabel($field)
      {
          $label = Str::title(str_replace('_', ' ', $field['fieldName']));
          $template = "{!! Form::label('\$FIELD_NAME\$', '\$FIELD_NAME_TITLE\$:', ['class' => 'form-control-label $FIELD_NAME_TITLE$']) !!}";
          $template = str_replace('$FIELD_NAME_TITLE$', $label, $template);
          $template = str_replace('$FIELD_NAME$', $field['fieldName'], $template);
          return $template;
      }
code_tokens: public static function generateLabel ( $ field ) { $ label = Str :: title ( str_replace ( '_' , ' ' , $ field [ 'fieldName' ] ) ) ; $ template = "{!! Form::label('\$FIELD_NAME\$', '\$FIELD_NAME_TITLE\$:', ['class' => 'form-control-label $FIELD_NAME_TITLE$']) !!}" ; $ template = str_replace ( '$FIELD_NAME_TITLE$' , $ label , $ template ) ; $ template = str_replace ( '$FIELD_NAME$' , $ field [ 'fieldName' ] , $ template ) ; return $ template ; }
docstring: added bootstrap default class to the label
docstring_tokens: added bootstrap default class to the label