Issue #6112 fixed (Reserve attribute codes excluded from creation)

This commit is contained in:
jitendra 2022-03-24 17:46:58 +05:30
parent ead7a2a9fe
commit 6fe02df308
1 changed files with 1 additions and 1 deletions

View File

@ -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',
]);