Browse Source

fix #1516

Jiang qinghua 3 years ago
parent
commit
110120a82f
1 changed files with 2 additions and 2 deletions
  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)) {