title: Laravel returning Class 'Illuminate\Support\Facades\Storage\' not found in directory for any Storage function
body: <p>I'm currently trying to fetch a JSON file from a website, but now I've reduced it to any <code>Storage</code> functions in Laravel. Any code, such as this:</p>
  
  <pre class="lang-php prettyprint-override"><code>use Illuminate\Support\Facades\Storage;
  Storage::disk('local')-&gt;put('test.txt', 'content');
  </code></pre>
  
  <p>just returns</p>
  
  <pre class="lang-php prettyprint-override"><code>PHP Fatal error: Uncaught Error: Class 'Illuminate\Support\Facades\Storage' not found in directory
  </code></pre>
  
  <p>So far, I've tried
  <code>\Storage::disk('local')-&gt;put('test.txt', 'content);</code> without <code>use</code>, importing <code>use Storage;</code> or using other methods from <code>Storage</code>. None of them work, and I've even tried switching computers and installing a fresh <code>Laravel</code> package. All of them return the same error.</p>
  
  <p>It's not the <code>text.txt</code>'s error, any legitimate file I put in don't work either.</p>
  
  <p>I did check the alias for the keys, it does have the <code>Storage</code> alias under the alias array. I've also ran a skew of commands, such as <code>cache:clear</code> and <code>composer dump</code>, but to no avail.</p>
  
  <p>Currently, I have this file in a custom directory in <code>app/Commons/web/script.php</code>, since it's a script I plan on running periodically.</p>