title: Can not update image in laravel 5.1?
body: <p>Any one can help me with this? I try to update new image for my project but, it get errors.If I don't choose new image just update content only it's ok, but with new image I cannot update. This is my code</p>
  
  <pre><code>public function updateStudent(UpdateStudentRequest $request){//(Request $request)
      $id = $request-&gt;input('id');
      $student = Students::find($id);
  
      if( $request-&gt;hasFile('pic') ){
      $path = 'images/';
      $file = Image::make(input::file('pic'));
      $fileName = Input::file('pic')-&gt;getClientOriginalName();
      $file-&gt;save($path."original/".$fileName);
      $students-&gt;original = $path."original/".$fileName;
      //get the desire image size
      $file-&gt;fit(120,90);
      $file-&gt;save($path."fit/".$fileName);
      $students-&gt;image = $path."fit/".$fileName; 
      }
  
      $student-&gt;first_name = $request-&gt;input('first_name');
      $student-&gt;last_name = $request-&gt;input('last_name');
      $student-&gt;email = $request-&gt;input('email');
      $student-&gt;password = $request-&gt;input('password');
      $student-&gt;address = $request-&gt;input('address');
  
      $student-&gt;save();
      }
  </code></pre>
  
  <p>This is the error:</p>
  
  <pre><code>ErrorException in Crud.php line 73:
  Creating default object from empty value
  </code></pre>