¨4.0.1¨
This commit is contained in:
@@ -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']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user