laravel validation for one image only code example
Example: laravel validation image or file
$validate = Validator::make($params = $request->all(), [
'type' => 'required',
'files' => 'mimes:jpeg,png,jpg,svg,doc,docx,odt,pdf,tex,txt,wpd,tiff,tif,csv,psd,key,odp,pps,ppt,pptx,ods,xls,xlsm,xlsx'
]);