title: Can't write image data to path laravel live project
body: <p>On my project the user is able to upload a profile picture, and if they don't there is a default picture.  I am using this on my Laravel project, and works 100%.  Now I have hosted my project online it wont allow me to upload a profile picture but picks up the default image.  I'm not sure why.  The error message i'm getting is:</p>
  <blockquote>
  <p>Intervention\Image\Exception\NotWritableException Can't write image data to path (/home/n1huer/laravel/public/uploads/avatars/1525256072.png)</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/aoxE5.png" rel="nofollow noreferrer">This is my file structure within laravel</a></p>
  <p>My controller for this is</p>
  <pre><code>public function update_avatar(Request $request)
  {
      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('myaccount', array('user' =&gt; Auth::user()) );
  }
  </code></pre>
  <p>The file path must be right if it is picking up the default?</p>
  <p>Any help would be greatly appreciated, thanks</p>