title: NotReadableException in Decoder.php line 20: Unable to read image from file (). laravel 5.3
body: <p>I am trying to upload image in Laravel 5.3 but I am getting NotReadableException in Decoder.php line 20:</p>
  
  <blockquote>
    <p>Unable to read image from file ().</p>
    
    <p>error. Could anyone help me in it. I am using Image Intervention for
    image upload.</p>
  </blockquote>
  
  <p><strong>Below the code which i have tried :</strong></p>
  
  <pre><code>public function update(Request $request){
  
          // Handle the user upload of avatar
          if($request-&gt;hasFile('avatar')){
              $avatar = $request-&gt;file('avatar');
              $filename = time() . '.' . $avatar-&gt;getClientOriginalExtension();
              Image::make($avatar)-&gt;resize(300, 300)-&gt;save( public_path('/uploads/avatars/' . $filename ) );
  
              $user = Auth::user();
              $user-&gt;avatar = $filename;
              $user-&gt;save();
  
          }
  
          return view('users/profile', array('user' =&gt; Auth::user()) );
  
      }
  </code></pre>