mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-25 10:04:54 +08:00
CI Working? 🤞
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user