title: Please provide a valid cache path ERROR. Even if there's a storage(cache,sessions,views) folder
body: <p>Why does my &quot;composer install/update&quot; keeps giving me this error? I also cant run some php artisan command because it will give me the same error</p>
  <p><a href="https://i.stack.imgur.com/zJfWe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zJfWe.png" alt="Please Provide a valid cache path" /></a></p>
  <p>I already created a storage folder with cache, sessions, and views inside it but its still invalid path.</p>
  <p>I also checked my view.php and its pointing also here</p>
  <p>view.php</p>
  <p><a href="https://i.stack.imgur.com/RTku5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RTku5.png" alt="" /></a></p>
  <p>I also working on windows</p>
  <p>Error code:</p>
  <pre><code>&gt; Illuminate\Foundation\ComposerScripts::postAutoloadDump
  &gt; @php artisan package:discover --ansi
  
     InvalidArgumentException  : Please provide a valid cache path.
  
    at C:\Users\SDG\myproject\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php:36
      32|      */
      33|     public function __construct(Filesystem $files, $cachePath)
      34|     {
      35|         if (! $cachePath) {
    &gt; 36|             throw new InvalidArgumentException('Please provide a valid cache path.');
      37|         }
      38|
      39|         $this-&gt;files = $files;
      40|         $this-&gt;cachePath = $cachePath;
  
    Exception trace:
  
    1   Illuminate\View\Compilers\Compiler::__construct(Object(Illuminate\Filesystem\Filesystem))
        C:\Users\SDG\myproject\vendor\laravel\framework\src\Illuminate\View\ViewServiceProvider.php:92
  
    2   Illuminate\View\ViewServiceProvider::Illuminate\View\{closure}(Object(Illuminate\Foundation\Application), [])
        C:\Users\SDG\myproject\vendor\laravel\framework\src\Illuminate\Container\Container.php:799
  
    Please use the argument -v to see more details.
  Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
  </code></pre>