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.')]); - } - } -}