I am trying to update image to image/brand/ folder but unexpectedly error is occurred. public function update(Request $request,$id){ $validated = $request->validate([ 'brand_name' => 'required|max:4', // 'brand_image' => 'required|mimes:jpg,jpeg,png', ]); $old_image=$request->old_image; $brandimage=$request->file('brand_image'); $image_gen=hexdec(uniqid()); $image_exten=strtolower($brandimage->getClientOriginalExtension()); $image_name=$image_gen.'.'.$image_exten; $image_location='image/brand/'; $image_uplioad= $image_location.$image_name; $brandimage->move($image_location,$image_name); unlink($old_image); Brand::find($id)->update([…