title: Laravel file uploads failing when file size is larger than 2mb
body: <p>I launched an early beta site yesterday. It's vrep.io and I faced a strange problem. When uploading images (user avatars) larger than 2mb laravel validator returns "validation.uploaded" error message.</p>
  
  <p>validator code:</p>
  
  <pre><code>protected function basicValidator( array $data ) {
      return Validator::make( $data, [
          'name'        =&gt; 'required|min:2|max:255',
          'occupation'  =&gt; 'max:255',
          'avatar'      =&gt; 'mimes:jpeg,png,gif|dimensions:min_width=500,min_height=500|max:8000',
          'drop-avatar' =&gt; 'in:1,0',
      ],
          [
              'avatar.mimes'      =&gt; 'Uploaded file format should be jpeg, jpg, png or gif.',
              'avatar.dimensions' =&gt; 'Image should have minimum 500x500px dimensions.',
              'avatar.max'        =&gt; 'Maximum allowed file size is 6 MB.',
          ] );
  }
  </code></pre>
  
  <p>I changed the current php.ini file parameters:</p>
  
  <pre><code>upload_max_filesize   100M
  post_max_size         100M
  memory_limit          256M
  </code></pre>
  
  <p>It's running on AWS EC2 instance. UBUNTU 16.04 and Nginx.</p>
  
  <p>I have also made changes in nginx config file:</p>
  
  <pre><code>$ sudo vim /etc/nginx/sites-available/default
  
  client_max_body_size 100m;
  </code></pre>
  
  <p>Restarted nginx and php and even restarted the whole web server. No effect. Still the same error when uploading files larger than 2mb.</p>
  
  <p>p.s. I run homestead locally and file uploads work without any issues. The problem is only on production server.</p>
  
  <p>What did I miss there?</p>