Laravel solicitud Allfiles

$filesRequest = $request->allFiles() ?? [];
foreach ($filesRequest as $key => $fileRequest) {
  if (!$file = $request->file($key)) {
    continue;
  }
  try {
    $file->storeAs('public/filesFolder', $file->getClientOriginalName());
  } catch (\Exception $e) {}
}
Lokesh003