We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82ff5fe commit 3f01276Copy full SHA for 3f01276
app/Http/Requests/StoreProductRequest.php
@@ -30,6 +30,7 @@ public function rules()
30
return [
31
'name' => 'required',
32
'price' => 'required|numeric',
33
+ 'photo' => 'required|image|mimes:jpeg,png,jpg|max:2048',
34
];
35
}
36
0 commit comments