Skip to content

Commit 3f01276

Browse files
author
ahmadhuss
committed
refactor: image validation rule has been added
1 parent 82ff5fe commit 3f01276

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Requests/StoreProductRequest.php

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function rules()
3030
return [
3131
'name' => 'required',
3232
'price' => 'required|numeric',
33+
'photo' => 'required|image|mimes:jpeg,png,jpg|max:2048',
3334
];
3435
}
3536
}

0 commit comments

Comments
 (0)