¨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

@@ -15,6 +15,7 @@ class SaveOptionRequest extends Request
*/
protected $availableAttributes = 'option::attributes';
/**
* Get the validation rules that apply to the request.
*
@@ -32,6 +33,7 @@ class SaveOptionRequest extends Request
];
}
public function validationData()
{
return request()->merge([
@@ -39,14 +41,15 @@ class SaveOptionRequest extends Request
])->all();
}
private function filter($values = [])
{
return array_filter($values, function ($value) {
if (! array_has($value, 'label')) {
if (!array_has($value, 'label')) {
return true;
}
return ! is_null($value['label']);
return !is_null($value['label']);
});
}
}

View File

@@ -15,6 +15,7 @@ class SaveProductOptionsRequest extends Request
*/
protected $availableAttributes = 'option::attributes';
/**
* Get the validation rules that apply to the request.
*