This is the code I tried so far. Could any one suggest how to alter this code to upload multiple files ?
public function uploadFile(Request $request){
$file = $request->file('image') ;
$fileName = time().$request->file('image')->getClientOriginalName();
$destinationPath = $request->input('path') ;
return $file->move($destinationPath,$fileName);
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…