fix: 🐛 Product attribute and title are now correctly nullable

This commit is contained in:
Jérémy Munsch 2024-05-17 11:18:12 +02:00
parent 7ab7a99a1f
commit 618863ee30
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -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');