¨4.0.1¨

This commit is contained in:
¨NW¨
2023-12-03 14:07:47 +00:00
parent c08b36d1b6
commit f35052522d
1112 changed files with 43019 additions and 24987 deletions

View File

@@ -14,6 +14,7 @@ class SaveProductAttributesRequest extends Request
*/
protected $availableAttributes = 'attribute::attributes.product_attributes';
/**
* Get the validation rules that apply to the request.
*
@@ -27,6 +28,7 @@ class SaveProductAttributesRequest extends Request
];
}
/**
* Get data to be validated from the request.
*
@@ -43,16 +45,18 @@ class SaveProductAttributesRequest extends Request
])->all();
}
/**
* Filter product attributes.
*
* @param array $attributes
*
* @return array
*/
private function filter($attributes = [])
{
return array_filter($attributes, function ($attribute) {
return ! is_null($attribute['attribute_id']);
return !is_null($attribute['attribute_id']);
});
}
}