diff --git a/project/app/Shop/Products/Requests/UpdateProductRequest.php b/project/app/Shop/Products/Requests/UpdateProductRequest.php index 2ef53f04c..15278341c 100644 --- a/project/app/Shop/Products/Requests/UpdateProductRequest.php +++ b/project/app/Shop/Products/Requests/UpdateProductRequest.php @@ -20,7 +20,9 @@ public function rules() 'quantity' => ['required', 'integer', 'min:0'], 'price' => ['required', 'numeric', 'min:0'], 'sale_price' => ['nullable', 'numeric'], - 'weight' => ['nullable', 'numeric', 'min:0'] + 'weight' => ['nullable', 'numeric', 'min:0'], + 'image' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048', + 'cover' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048', ]; } }