From a1ec04a62d666b66da84404caaeac926b0b17f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Tue, 20 Feb 2024 19:32:54 +0100 Subject: [PATCH] cleanup --- src/Rules/Option.php | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/Rules/Option.php diff --git a/src/Rules/Option.php b/src/Rules/Option.php deleted file mode 100644 index d73de564..00000000 --- a/src/Rules/Option.php +++ /dev/null @@ -1,44 +0,0 @@ -product = $product; - $this->variant = $variant; - } - - /** - * Run the validation rule. - */ - public function validate(string $attribute, mixed $value, Closure $fail): void - { - $variant = $this->product->toVariant($value); - - if (! is_null($variant) && ! $variant->is($this->variant)) { - call_user_func_array($fail, [__('The :attribute must be a unique combination.')]); - } - } -}