title: How to change storage settings after reload custom .env file in Laravel?
body: <p>I run into this issue after I loaded my custom <code>.env.custom</code> file in <code>AppServiceProvider</code>:</p>
  <pre class="lang-php prettyprint-override"><code>class AppServiceProvider extends ServiceProvider
  {
      // ...
  
      public function boot()
      {
          $host = request()-&gt;getHost();
  
          // read domain based .env file, like: .env.example.com
          $dotenv = \Dotenv\Dotenv::createMutable(base_path(), '.env.' . $host);
          $dotenv-&gt;load();
      }
  }
  </code></pre>
  <p>(I tried with <code>\Dotenv\Dotenv::createImmutable()</code> too, with same result.)</p>
  <p>Then in a controller:</p>
  <pre class="lang-php prettyprint-override"><code>dd(
      env('S3_ENDPOINT'),
      Storage::disk('s3'),
  );
  </code></pre>
  <p>The <code>env()</code> return with the new value, but the <code>Storage::disk('s3')</code> contains the old value.</p>
  <p>How can I force the whole Laravel system to reload the configuration from the <code>.env.custome</code> file?</p>