$request->validate([
'file' => 'required|mimes:png,jpg,jpeg,csv,txt,xlx,xls,pdf|max:2048'
]);
'image' => 'required|mimes:jpeg'
//or
'image' => 'required|image'
'image' => 'required|mimes:jpeg'
//or
'image' => 'required|image'
$request->validate([
'file' => 'required|mimes:png,jpg,csv,txt,xlx,xls,pdf|max:2048'
]);