title: How can I use Storage::disk('s3')->put() when my s3's x-amz-server-side-encryption is AES256 at Laravel 5.1?
body: <p>RT.</p>
  
  <p>This is my s3's filesystem configure:</p>
  
  <pre><code>'s3' =&gt; [
          'driver' =&gt; 's3',
          'key'    =&gt; env('AWS_ACCESS_KEY_ID'),
          'secret' =&gt; env('AWS_SECRET_ACCESS_KEY'),
          'region' =&gt; env('AWS_REGION'),
          'bucket' =&gt; env('AWS_BUCKET'),
      ],
  </code></pre>
  
  <p>And this is my composer.json:</p>
  
  <pre><code>"require": {
          "laravel/framework": "5.1.*",
          "barryvdh/laravel-ide-helper": "~2.0",
          "predis/predis": "~1.0",
          "guzzlehttp/guzzle": "~5.0",
          "league/flysystem-aws-s3-v3": "~1.0",
          "raven/raven": "0.12.*"
      },
  </code></pre>
  
  <p>And this is my s3's bucket policy:</p>
  
  <pre><code>{
      "Version": "2012-10-17",
      "Statement": [
          {
              "Sid": "DenyUnEncryptedObjectUploads",
              "Effect": "Deny",
              "Principal": {
                  "AWS": "*"
              },
              "Action": "s3:PutObject",
              "Resource": "arn:aws:s3:::*****bucket_name*****/*",
              "Condition": {
                  "StringNotEquals": {
                      "s3:x-amz-server-side-encryption": "AES256"
                  }
              }
          }
      ]
  }
  </code></pre>
  
  <p>Yes, I used <code>"s3:x-amz-server-side-encryption": "AES256"</code> as my PutObject's condition,  but I wanna use like this code:</p>
  
  <pre><code>Storage::disk('s3')-&gt;put('test.log','123');
  </code></pre>
  
  <p>But when I run it, I will got response like this:</p>
  
  <pre><code>[Aws\S3\Exception\S3Exception]                                                                                                                                    
  Error executing "HeadObject" on "https://s3-ap-northeast-1.amazonaws.com/****bucket_name****/test.log"; AWS HTTP error: Client error response [url]https://s3-ap-northeast-1.amazonaws.com/****bucket_name****/test.log [status code] 403 [reason phrase] Forbidden  (client): 403 Forbidden (Request-ID: 39C30C8512E5ED16) -
  
  [GuzzleHttp\Exception\ClientException]                                                                                                                     
  Client error response [url] https://s3-ap-northeast-1.amazonaws.com/****bucket_name****/test.log [status code] 403 [reason phrase] Forbidden
  </code></pre>
  
  <p>So, how can I do this? 
  Thanks!</p>