Level 42
I think you should change your image validation like :
$this->validate($request, [
'image' => 'required',
'image.*' => 'image|mimes:jpeg,png,jpg,gif,svg,bmp|max:2048'
]);
Hope this work for you !
Hi Guys,
is there anyone here know how to create a multiple image upload in Larve 5.4?..
I'm trying to create one, but I am stuck at image file validation
$this->validate(request(), [ $this->validate(request(), [ 'image' => 'required', Rule::in(['jpeg', 'png', 'bmp', 'gif', 'svg']), ] );
Please or to participate in this conversation.