title: Laravel "Unable to locate a class or view for component" in production environment
body: <p>I develop on a Mac locally. Latest version of Big Sur.</p>
  <p>Today I went to deploy my app to production via an Ubuntu server through Forge, and got greeted with an error I've never seen before, and can't find an answer to online. I can see MANY people complaining about it, but all anyone has said on other answers is link to issues that don't have solutions or even explanations really, so that's why I'm asking a new question.</p>
  <p>The exact error is this;
  <code>Unable to locate a class or view for component [layouts.base]. (View: /home/forge/default/releases/20201204084441/resources/views/layouts/app.blade.php)</code></p>
  <p>In my app I have;
  <code>app\View\Components\Layouts\App.php</code>
  which looks like this;</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  namespace App\View\Components\Layouts;
  
  use Illuminate\View\Component;
  
  class App extends Component
  {
      public function render()
      {
          return view('layouts.app');
      }
  }
  </code></pre>
  <p>Then I also have;
  <code>resources\views\layouts\app.blade.php</code></p>
  <pre><code>&lt;x-layouts.base&gt;
  &lt;!-- contents --&gt;
  &lt;/x-layouts.base&gt;
  </code></pre>
  <p>(Also pretty much the same for base)</p>
  <p>Works flawlessly on Mac. As soon as I deploy it on Ubuntu, I get the error above that it is &quot;unable to locate a class or view&quot; with those names.</p>
  <p>Can someone please instruct me on how I can go about fixing this, since so far I have absolutely no idea and despite knowing that case sensitivity is probably the issue as per the other questions about this, I cannot find any actual solution or way to resolve this.</p>