소스 검색

fix #1516

Jiang qinghua 3 년 전
부모
커밋
110120a82f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Form/Concerns/HasFieldValidator.php

+ 2 - 2
src/Form/Concerns/HasFieldValidator.php

@@ -368,8 +368,8 @@ trait HasFieldValidator
 
             $input = $this->sanitizeInput($input, $this->column);
 
-            Arr::set($rules, $this->column, $fieldRules);
-            Arr::set($attributes, $this->column, $this->label);
+            $rules[$this->column] = $fieldRules;
+            $attributes[$this->column] = $this->label;
         }
 
         if (is_array($this->column)) {