laravel mutiple file upload with html code example
Example: laravel 7 multiple file upload
if ($request->hasfile('filenames')) {
foreach ($request->file('filenames') as $file) {
$name = $file->getClientOriginalName();
$file->move(public_path() . '/mytestfile/', $name);
$data[] = $name;
}
return back()->with('Success!','Data Added!');
}