1if ($request->hasFile('image')) {
2 $file_path = $request->file('image')->storeAs('dir_name', request()->file('image')->getClientOriginalName(), 'optional_disk_name');
3}
4
5// pass the disk name as the third argument to the storeAs method: ex. local,s3,etc
6