title: How to use the file cache with Laravel Multi tenancy
body: <p>I'm using the following multi tenancy package: 
  <a href="https://laravel-tenancy.com/docs/hyn/5.3" rel="nofollow noreferrer">https://laravel-tenancy.com/docs/hyn/5.3</a></p>
  
  <p>Laravel: 5.7</p>
  
  <p>I current made the caching tenant aware by changing the config on the switched event.</p>
  
  <pre><code>Event::listen(Switched::class, function (Switched $event) {
     config(['cache.stores.file.path' =&gt; storage_path('framework/cache/' . $event-&gt;website-&gt;uuid)]);
  });
  </code></pre>
  
  <p>This works well when doing a command like: </p>
  
  <pre><code>php artisan tenancy:run my:caching-command --tenant=2
  </code></pre>
  
  <p>This does not work well:</p>
  
  <pre><code>php artisan tenancy:run my:caching-command
  </code></pre>
  
  <p>In this case only a cache dir is created for the first tenant. When debugging it, I found that the config is actually properly updated for each tenant. However the cache driver is not using the new path...</p>
  
  <p>Anyone any ideas?</p>