I stored my file like this.
public function update(Request $request) { $user = auth()->user(); $path = null; if ($request->hasFile(\'image\'))