答案 0 :(得分:0)
尝试一下
$data = [];
if($request->hasfile('image') as $image){
foreach($request->file('image') as $id => $image){
$ext = $image->getClientOriginalExtension();
$name = $id.time().'.'.$ext;
$path = public_path('\property\');
$image->move($path, $name);
$data[$id] = $name;
}
}