diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f53cf916e3..5ec7d0fed0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,8 +18,6 @@ jobs: testbench: 8.* - laravel: 9.* testbench: 7.* - - laravel: 8.* - testbench: 6.* exclude: - laravel: 10.* php: '8.0' diff --git a/packages/forms/src/Components/BaseFileUpload.php b/packages/forms/src/Components/BaseFileUpload.php index 8668236a77..b329e16c36 100644 --- a/packages/forms/src/Components/BaseFileUpload.php +++ b/packages/forms/src/Components/BaseFileUpload.php @@ -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()) { diff --git a/packages/tables/src/Columns/Concerns/CanBeValidated.php b/packages/tables/src/Columns/Concerns/CanBeValidated.php index a0073d2b32..aafd767fe7 100644 --- a/packages/tables/src/Columns/Concerns/CanBeValidated.php +++ b/packages/tables/src/Columns/Concerns/CanBeValidated.php @@ -42,7 +42,8 @@ trait CanBeValidated Validator::make( ['input' => $input], ['input' => $this->getRules()], - customAttributes: ['input' => $this->getValidationAttribute()], + [], + ['input' => $this->getValidationAttribute()], )->validate(); }