|
...
|
...
|
@@ -38,7 +38,7 @@ class ProductRequest extends FormRequest |
|
|
|
return [
|
|
|
|
'title' => 'required|max:200',
|
|
|
|
'route' => 'required|max:200',
|
|
|
|
'gallery' => ['required'],
|
|
|
|
'gallery' => 'required|array',
|
|
|
|
'attrs' => ['array', function ($attribute, $value, $fail) {
|
|
|
|
foreach ($value as $v) {
|
|
|
|
if (empty($v['key'])) {
|
...
|
...
|
|