original_string: protected function formatValidationAttribute($input, $label, $column)
      {
          $new = $attributes = [];
  
          if (is_array($column)) {
              foreach ($column as $index => $col) {
                  $new[$col.$index] = $col;
              }
          }
  
          foreach (array_keys(Arr::dot($input)) as $key) {
              if (is_string($column)) {
                  if (Str::endsWith($key, ".$column")) {
                      $attributes[$key] = $label;
                  }
              } else {
                  foreach ($new as $k => $val) {
                      if (Str::endsWith($key, ".$k")) {
                          $attributes[$key] = $label."[$val]";
                      }
                  }
              }
          }
  
          return $attributes;
      }
code: protected function formatValidationAttribute($input, $label, $column)
      {
          $new = $attributes = [];
  
          if (is_array($column)) {
              foreach ($column as $index => $col) {
                  $new[$col.$index] = $col;
              }
          }
  
          foreach (array_keys(Arr::dot($input)) as $key) {
              if (is_string($column)) {
                  if (Str::endsWith($key, ".$column")) {
                      $attributes[$key] = $label;
                  }
              } else {
                  foreach ($new as $k => $val) {
                      if (Str::endsWith($key, ".$k")) {
                          $attributes[$key] = $label."[$val]";
                      }
                  }
              }
          }
  
          return $attributes;
      }
code_tokens: protected function formatValidationAttribute ( $ input , $ label , $ column ) { $ new = $ attributes = [ ] ; if ( is_array ( $ column ) ) { foreach ( $ column as $ index => $ col ) { $ new [ $ col . $ index ] = $ col ; } } foreach ( array_keys ( Arr :: dot ( $ input ) ) as $ key ) { if ( is_string ( $ column ) ) { if ( Str :: endsWith ( $ key , ".$column" ) ) { $ attributes [ $ key ] = $ label ; } } else { foreach ( $ new as $ k => $ val ) { if ( Str :: endsWith ( $ key , ".$k" ) ) { $ attributes [ $ key ] = $ label . "[$val]" ; } } } } return $ attributes ; }
docstring: Format validation attributes.
  
  @param array  $input
  @param string $label
  @param string $column
  
  @return array
docstring_tokens: Format validation attributes .