Skip to content

Commit 2dbe7b6

Browse files
author
ahmadhussnain
committed
Updated StoreCategoryRequest.php for the photo field
1 parent 77c7cc1 commit 2dbe7b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Http/Requests/StoreCategoryRequest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public function authorize()
2424
public function rules()
2525
{
2626
return [
27-
'name' => 'required'
27+
'name' => 'required',
28+
'photo' => 'image|mimes:jpeg,png,jpg'
2829
];
2930
}
3031
}

0 commit comments

Comments
 (0)