From 6fe02df3086093a7af266bc53ea6b72bce4c059d Mon Sep 17 00:00:00 2001 From: jitendra Date: Thu, 24 Mar 2022 17:46:58 +0530 Subject: [PATCH] Issue #6112 fixed (Reserve attribute codes excluded from creation) --- .../Attribute/src/Http/Controllers/AttributeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Webkul/Attribute/src/Http/Controllers/AttributeController.php b/packages/Webkul/Attribute/src/Http/Controllers/AttributeController.php index fcfce12f3..94f809c0b 100755 --- a/packages/Webkul/Attribute/src/Http/Controllers/AttributeController.php +++ b/packages/Webkul/Attribute/src/Http/Controllers/AttributeController.php @@ -66,7 +66,7 @@ class AttributeController extends Controller public function store() { $this->validate(request(), [ - 'code' => ['required', 'unique:attributes,code', new \Webkul\Core\Contracts\Validations\Code], + 'code' => ['required', 'not_in:type,attribute_family_id', 'unique:attributes,code', new \Webkul\Core\Contracts\Validations\Code], 'admin_name' => 'required', 'type' => 'required', ]);