title: how to fetch the old image in edit form in laravel ?what would be the code?
body: <p>//Here is my edit form (image field)
  I have an edit form which has an image field where a user can upload a new image if he wants to.</p>
  
  <p>But if the user does not upload a new photo I want to just use the photo that's already in the database. And not update the image field at all. But in my code whenever I am trying to without uploading new image form is not taking the old input value.</p>
  
  <pre><code>&lt;div class="form-group"&gt;
     &lt;input type="file" name="image"&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>//this is the update function</p>
  
  <pre><code> public function update(Request $request, $id)
      {
          $this-&gt;validate($request,[
              'name' =&gt; 'required',
              'image' =&gt; 'mimes:jpeg,bmp,png,jpg'
          ]);
          // get form image
          $image = $request-&gt;file('image');
          $slug = str_slug($request-&gt;name);
          $category = Category::find($id);
          if (isset($image))
          {
  //            make unique name for image
              $currentDate = Carbon::now()-&gt;toDateString();
              $imagename = $slug.'-'.$currentDate.'-'.uniqid().'.'.$image-&gt;getClientOriginalExtension();
  //            check category dir is exists
              if (!Storage::disk('public')-&gt;exists('category'))
              {
                  Storage::disk('public')-&gt;makeDirectory('category');
              }
  //            delete old image
              if (Storage::disk('public')-&gt;exists('category/'.$category-&gt;image))
              {
                  Storage::disk('public')-&gt;delete('category/'.$category-&gt;image);
              }
  //            resize image for category and upload
              $categoryimage = Image::make($image)-&gt;resize(1600,479)-&gt;stream();
              Storage::disk('public')-&gt;put('category/'.$imagename,$categoryimage);
              //            check category slider dir is exists
              if (!Storage::disk('public')-&gt;exists('category/slider'))
              {
                  Storage::disk('public')-&gt;makeDirectory('category/slider');
              }
              //            delete old slider image
              if (Storage::disk('public')-&gt;exists('category/slider/'.$category-&gt;image))
              {
                  Storage::disk('public')-&gt;delete('category/slider/'.$category-&gt;image);
              }
              //            resize image for category slider and upload
              $slider = Image::make($image)-&gt;resize(500,333)-&gt;stream();
              Storage::disk('public')-&gt;put('category/slider/'.$imagename,$slider);
          } else {
              $imagename = $category-&gt;image;
          }
          $category-&gt;name = $request-&gt;name;
          $category-&gt;slug = $slug;
          $category-&gt;image = $imagename;
          $category-&gt;save();
          Toastr::success('Category Successfully Updated :)' ,'Success');
          return redirect()-&gt;route('admin.category.index');
      }
  </code></pre>
  
  <p>// When i click on the edit button it shows the <strong>No file Chosen</strong> it is not displaying the old image ..</p>