title: Fetch image variable and display on input file
body: <p>I am trying to update an image and other data in a database, but when I update only text data, the image value becomes null or empty.</p>
  <pre><code>&lt;form action=&quot;/admin/settings/why-us/update/{{$data-&gt;id}}&quot; enctype=&quot;multipart/form-data&quot; method=&quot;POST&quot;&gt;
  @csrf
  &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;title&quot; value=&quot;{{$data-&gt;title}}&quot;&gt;
  &lt;input type=&quot;file&quot; class=&quot;form-control&quot; value=&quot;{{$data-&gt;image}}&quot; name=&quot;image&quot;&gt;
  &lt;button type=&quot;submit&quot;  class=&quot;btn btn-success py-2 px-4 text-white&quot;&gt;Update changes&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  <p>This a controller</p>
  <pre><code>public function updateWhyusPageSetting(Request $request,$id)
      {
          $title = $request-&gt;input('title');
          $image =  $image = $request-&gt;file('image');
          dd($image);
  
            if($request-&gt;hasFile('image')) {
                  $image = $request-&gt;file('image');
                  $filename = $image-&gt;getClientOriginalName();
                  $image-&gt;move(public_path('/frontend/images/'), $filename);
                  $image_upload = $request-&gt;file('image')-&gt;getClientOriginalName();
              }
  
  
            DB::table('features')
              -&gt;where('id', $id)
              -&gt;update([
                  'title'  =&gt; $title, 
                  'image' =&gt; $image_upload
              ]);
     
   
          
  
          \Session::flash('flash_message', __('Why us data updated'));
          \Session::flash('flash_type', 'success');
  
          return redirect()-&gt;back();
      }
  </code></pre>
  <p>When I input only the title, left out the image, and tried to dump using dd($image);, I got a null value.</p>
  <p>When updating the image, it's getting updated very well database.</p>
  <p>Now, my question is, how do I make sure the value is captured in the input file <code>&lt;input type=&quot;file&quot; class=&quot;form-control&quot; value=&quot;{{$data-&gt;image}}&quot; name=&quot;image&quot;&gt;</code> so that when I update other data, it also sends the image value. NB: <strong>value=&quot;{{$data-&gt;image}}&quot;</strong> IS NOT capturing the data from database</p>