CI Working? 🤞

This commit is contained in:
Dan Harrin
2023-02-14 20:19:37 +00:00
parent d99a07168c
commit 768aea427e
3 changed files with 6 additions and 6 deletions
-2
View File
@@ -18,8 +18,6 @@ jobs:
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
exclude:
- laravel: 10.*
php: '8.0'
@@ -428,9 +428,10 @@ class BaseFileUpload extends Field
$name = $this->getName();
$validator = Validator::make(
data: [$name => $files],
rules: ["{$name}.*" => array_merge(['file'], parent::getValidationRules())],
customAttributes: ["{$name}.*" => $this->getValidationAttribute()],
[$name => $files],
["{$name}.*" => array_merge(['file'], parent::getValidationRules())],
[],
["{$name}.*" => $this->getValidationAttribute()],
);
if (! $validator->fails()) {
@@ -42,7 +42,8 @@ trait CanBeValidated
Validator::make(
['input' => $input],
['input' => $this->getRules()],
customAttributes: ['input' => $this->getValidationAttribute()],
[],
['input' => $this->getValidationAttribute()],
)->validate();
}