1public function saveFile(Request $request) {
2 $md5Name = md5_file($request->file('your_input_name')->getRealPath());
3 $guessExtension = $request->file('your_input_name')->guessExtension();
4 $file = $request->file('your_input_name')->storeAs('your_path', $md5Name.'.'.$guessExtension ,'your_disk');
5}
6