title: The Mix manifest does not exist - Laravel Fortify Jetstream Login/Registration Issue when deploying laravel in Hostgator shared hosting
body: <p>I have been able to deploy Laravel projects successfuly in the past.
  For the first time I am using Laravel 8 with Jetstream and Livewire. Laravel is now using Fortify for login and registration auth.</p>
  <p>My local server works perfect, no issues. After deploying the project to a Hostgator shared hosting account, my homepage loads correctly and reads and outputs data from my DB correctly.</p>
  <p>However, when I try to access</p>
  <p>mydomain.com/login/ or mydomain.com/login
  or
  mydomain.com/register/ or mydomain.com/register</p>
  <p>I get a 500 error. Below at the end of this question I am pasting the error log.</p>
  <p>I have done the following:</p>
  <ol>
  <li>Updated composer version</li>
  <li>npm rebuild</li>
  <li>npm install</li>
  <li>I tried both: npm run dev and npm run production and re-uploaded everything in each scenario.</li>
  <li>I have pointed public/index.php path to the correct app folder to read the autoload.php and bootstrap/app.php files.</li>
  <li>I have chmod all folders and subfolders to 755 and all files to 644</li>
  </ol>
  <p>I find it really strange that my homepage loads flawless and brings data from DB just fine, therefore I know that my .env file has the correct db connection credentials. Only the login and registration will throw a 500 error.</p>
  <p>My env file:</p>
  <pre><code>APP_NAME=NameOfApp
  APP_ENV=production
  APP_KEY=base64:KeyGeneratedWhenProjectCreated
  APP_DEBUG=false
  APP_URL=http://domain
  LOG_CHANNEL=stack
  LOG_LEVEL=debug
  
  DB_CONNECTION=mysql
  DB_HOST=localhost
  DB_PORT=3306
  DB_DATABASE=db_works_good
  DB_USERNAME=username_works_good
  DB_PASSWORD=passwordWorksGood
  </code></pre>
  <p>Here is the laravel.log (shortened to what seems important):</p>
  <pre><code>[2020-11-30 20:25:34] production.ERROR: The Mix manifest does not exist. (View: /domain_root_path/app/resources/views/layouts/guest.blade.php) (View: /domain_root_path/app/resources/views/layouts/guest.blade.php) {&quot;exception&quot;:&quot;[object] (ErrorException(code: 0): The Mix manifest does not exist. (View: /domain_root_path/app/resources/views/layouts/guest.blade.php) (View: /domain_root_path/app/resources/views/layouts/guest.blade.php) at /domain_root_path/app/vendor/laravel/framework/src/Illuminate/Foundation/Mix.php:46)
  [stacktrace]
  #0 /domain_root_path/app/vendor/livewire/livewire/src/CompilerEngine.php(38): Illuminate\\View\\Engines\\CompilerEngine-&gt;handleViewException(Object(ErrorException), 0)
  #1 /domain_root_path/app/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(60): Livewire\\CompilerEngine-&gt;handleViewException(Object(ErrorException), 0)
  #2 /domain_root_path/app/vendor/livewire/livewire/src/LivewireViewCompilerEngine.php(32): Illuminate\\View\\Engines\\PhpEngine-&gt;evaluatePath('/home2/usr2...', Array)
  ...................
  #52 /domain_root_path/public_html/index.php(52): Illuminate\\Foundation\\Http\\Kernel-&gt;handle(Object(Illuminate\\Http\\Request))
  #53 {main}
  [previous exception] [object] (Exception(code: 0): The Mix manifest does not exist. at /domain_root_path/app/vendor/laravel/framework/src/Illuminate/Foundation/Mix.php:46)
  [stacktrace]
  
  
  
  
  #0 /domain_root_path/app/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(506): Illuminate\\Foundation\\Mix-&gt;__invoke('/css/app.css')
  #1 /domain_root_path/app/storage/framework/views/f25b68bee7f180a7da8624828693071be98325dc.php(14): mix('css/app.css')
  #2 /domain_root_path/app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(107): require('/home2/usr2...')
  ............................................
  #66 {main}
  </code></pre>
  <p>THE STRUCTURE OF FILES:</p>
  <p>root has two folders:</p>
  <ul>
  <li>app (has all files except public folder)</li>
  <li>public_html : has all public content including index.php</li>
  </ul>
  <p>My index.php (inside public) has the following paths:</p>
  <pre><code>require __DIR__.'/../app/vendor/autoload.php';
  
  $app = require_once __DIR__.'/../app/bootstrap/app.php';
  </code></pre>
  <p>GUEST.BLADE.PHP looks like this:
  (please note that this file was auto-generated by Laravel and I have not touched it)</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;{{ str_replace('_', '-', app()-&gt;getLocale()) }}&quot;&gt;
      &lt;head&gt;
          &lt;meta charset=&quot;utf-8&quot;&gt;
          &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
          &lt;meta name=&quot;csrf-token&quot; content=&quot;{{ csrf_token() }}&quot;&gt;
  
          &lt;title&gt;{{ config('app.name', 'Laravel') }}&lt;/title&gt;
  
          &lt;!-- Fonts --&gt;
          &lt;link rel=&quot;stylesheet&quot; href=&quot;https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&amp;display=swap&quot;&gt;
  
          &lt;!-- Styles --&gt;
          &lt;link rel=&quot;stylesheet&quot; href=&quot;{{ mix('css/app.css') }}&quot;&gt;
  
          &lt;!-- Scripts --&gt;
          &lt;script src=&quot;https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.7.3/dist/alpine.js&quot; defer&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class=&quot;font-sans text-gray-900 antialiased&quot;&gt;
              {{ $slot }}
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>/public/mix-manifest.json:</p>
  <pre><code>{
      &quot;/js/app.js&quot;: &quot;/js/app.js&quot;,
      &quot;/css/app.css&quot;: &quot;/css/app.css&quot;
  }
  </code></pre>