fix: 🐛 Product attribute and title are now correctly nullable
This commit is contained in:
parent
7ab7a99a1f
commit
618863ee30
1 changed files with 2 additions and 2 deletions
|
|
@ -47,8 +47,8 @@ class StoreProductRequest extends FormRequest
|
|||
'unique:products,ean_code',
|
||||
'regex:/^[0-9]{7}$|^[0-9]{8}$|^[0-9]{13}$/',
|
||||
],
|
||||
'picture_alt' => 'required_with:picture|string|between:3,255',
|
||||
'picture_title' => 'required_with:picture|string|between:3,255',
|
||||
'picture_alt' => 'nullable|required_with:picture|string|between:3,255',
|
||||
'picture_title' => 'nullable|required_with:picture|string|between:3,255',
|
||||
'range_id' => 'exists:ranges,id'
|
||||
];
|
||||
$width = config('theme.models.products.picture_max_width');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue