title: Laravel inserting normal image, value become null
body: <p>I am Learning at the moment. But got one problem. I have build a database:</p>
  
  <p><img src="https://i.stack.imgur.com/hZhTG.png" alt="enter image description here"> </p>
  
  <p>and my controller code is:</p>
  
  <p>UploadController.php</p>
  
  <pre><code>public function upload(Request $request, Task $task)
  {
  
          $task-&gt;image = Request::get('image');
          $task-&gt;save();
          return redirect('/');
  
  }
  </code></pre>
  
  <p>TaskController.php</p>
  
  <p>
  
  <pre><code>public function update(Request $request, Task $task)
  {
      if(isset($_POST['delete'])) {
  
          $task-&gt;delete();
          return redirect('/');
      }
      else
      {
          $task-&gt;description = Request::get('description');
          $task-&gt;save();
          return redirect('/'); 
      }       
  }
  
  public function upload(Request $request, Task $task)
  {
      if(isset($_POST['delete'])) {
  
          $task-&gt;delete();
          return redirect('/');
      }
      else
      {
      $task-&gt;image = Request::get('image');
      $task-&gt;save();
      return redirect('/');
      }       
  }
  </code></pre>
  
  <p>edit.blade.php</p>
  
  <pre><code>&lt;div class="container"&gt;
  &lt;h1&gt;Edit the Task&lt;/h1&gt;
  
  
  
  &lt;form method="POST" action="/task/{{ $task-&gt;id }}"&gt;
  
  &lt;div class="form-group"&gt;
      &lt;textarea name="description" class="form-control"&gt;{{$task-&gt;description }}&lt;/textarea&gt;    
  &lt;/div&gt;
  
  &lt;form action="{{ URL::to('upload') }}" method="post" enctype="multipart/form-data"&gt;
      &lt;label&gt;Select image to upload:&lt;/label&gt;
  
      &lt;input class="btn btn-primary" type="file" name="file" id="file"&gt;
      &lt;input class="btn btn-primary" type="submit" value="Insert" name="insert" enctype="multipart/form-data"&gt;
      &lt;input class="btn btn-primary" type="hidden" value="{{ csrf_token() }}" name="_token"&gt;
      &lt;img class="user_avatar" src="{{url('public/uploads/test.jpg')}}"&gt;      
  &lt;/form&gt;
  &lt;div class="form-group"&gt;
      &lt;button type="submit" name="update" class="btn btn-primary"&gt;Update task&lt;/button&gt;
  &lt;/div&gt;
  
  
  &lt;div class="form-group"&gt;
      &lt;button type="submit" name="update" class="btn btn-primary"&gt;Update task&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <p>These are my code, when I try to insert an image in to my database, it become null and self create another set of null data. How can I fix this problem? Thank you.</p>
  
  <p><img src="https://i.stack.imgur.com/ecBuv.png" alt="enter image description here"></p>
  
  <p>This is my database at the moment</p>
  
  <p><a href="https://i.stack.imgur.com/m1gbj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m1gbj.png" alt="enter image description here"></a></p>
  
  <p>This is the inside value of the image
  <a href="https://i.stack.imgur.com/CdX2k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CdX2k.png" alt="enter image description here"></a></p>