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)) {