We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd572f3 commit ca3b935Copy full SHA for ca3b935
src/Form/Field/HasMany.php
@@ -6,6 +6,7 @@
6
use Dcat\Admin\Form;
7
use Dcat\Admin\Form\Field;
8
use Dcat\Admin\Form\NestedForm;
9
+use Dcat\Admin\Support\Helper;
10
use Illuminate\Support\Arr;
11
use Illuminate\Support\Facades\Validator;
12
use Illuminate\Support\Str;
@@ -120,6 +121,12 @@ public function getValidator(array $input)
120
121
continue;
122
}
123
124
+ if ($field instanceof File) {
125
+ $fieldRules = is_string($fieldRules) ? explode('|', $fieldRules) : $fieldRules;
126
+
127
+ Helper::deleteByValue($fieldRules, ['image', 'file']);
128
+ }
129
130
$column = $field->column();
131
132
if (is_array($column)) {
0 commit comments