arquivo de validação Laravel
$request->validate([
'file' => 'required|mimes:png,jpg,jpeg,csv,txt,xlx,xls,pdf|max:2048'
]);
Grumpy Goosander
$request->validate([
'file' => 'required|mimes:png,jpg,jpeg,csv,txt,xlx,xls,pdf|max:2048'
]);
'file' => 'max:2048'
'image' => 'required|mimes:jpeg'
//or
'image' => 'required|image'
$request->validate([
'file' => 'required|mimes:png,jpg,csv,txt,xlx,xls,pdf|max:2048'
]);