Change S3 Endpoint in Laravel
<p>I used the <strong>filesystems.php</strong> file to configure my S3.
When I try to put content in the bucket I receive this error:</p>

<pre><code>Encountered a permanent redirect while requesting https://s3-us-west-2.amazonaws.com/MYBUCKET... Are you sure you are using the correct region for this bucket?
</code></pre>

<p>I then try to acces the url and I get this message:</p>

<pre><code>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
</code></pre>

<p>On the same page I get:</p>

<pre><code>&lt;Endpoint&gt;s3.amazonaws.com&lt;/Endpoint&gt;
</code></pre>

<p>Then <strong>how could I remove the region from the URL Laravel generates</strong>?</p>