title: Laravel 7 - Class hash does not exist
body: <p>I have a newly created Laravel application with Backpack installed in it. I am struggling to deploy it to Google Cloud for the past few days.</p>
  <p>I'm using Laravel 7, I'm trying to deploy to Google cloud App Engine and getting <code>Class hash does not exist</code> error. Few times I've also gotten <code>Class view does not exist</code>.</p>
  <p>I'm pretty sure that this is something to do with deployment environment rather than my changes. The reason for me to say this is, this morning I updated <code>backpack/crud</code> version and the application ran successfully after deployment.</p>
  <p>So just to test, I deployed again without making any changes, zero files were uploaded and I ran into the same problem!</p>
  <p>It would be great if someone can give me pointers to what I can try.</p>
  <pre><code>2020/07/09 23:42:46 [error] 20#20: *1 FastCGI sent in stderr: &quot;PHP message: PHP Fatal error:  Uncaught ReflectionException: Class hash does not exist in /srv/vendor/laravel/framework/src/Illuminate/Container/Container.php:805
  Stack trace:
  #0 /srv/vendor/laravel/framework/src/Illuminate/Container/Container.php(805): ReflectionClass-&gt;__construct('hash')
  #1 /srv/vendor/laravel/framework/src/Illuminate/Container/Container.php(687): Illuminate\Container\Container-&gt;build('hash')
  #2 /srv/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(796): Illuminate\Container\Container-&gt;resolve('hash', Array, true)
  #3 /srv/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Foundation\Application-&gt;resolve('hash', Array)
  #4 /srv/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(781): Illuminate\Container\Container-&gt;make('hash', Array)
  #5 /srv/vendor/laravel/framework/src/Illuminate/Container/Container.php(1280): Illuminate\Foundation\Application-&gt;make('hash')
  #6 /srv/vendor/laravel/framework/src/Illuminate/Auth/CreatesUserPro...PHP message: PHP Fatal error:  Uncaught ReflectionException: Class hash does not exist in /srv/vendor/laravel/framework/src/Illuminate/Container/Container.php:805
  </code></pre>
  <p>My composer.json -</p>
  <pre><code>{
      &quot;name&quot;: &quot;laravel/laravel&quot;,
      &quot;type&quot;: &quot;project&quot;,
      &quot;description&quot;: &quot;The Laravel Framework.&quot;,
      &quot;keywords&quot;: [
          &quot;framework&quot;,
          &quot;laravel&quot;
      ],
      &quot;license&quot;: &quot;MIT&quot;,
      &quot;require&quot;: {
          &quot;php&quot;: &quot;^7.2.5&quot;,
          &quot;backpack/crud&quot;: &quot;4.1.*&quot;,
          &quot;backpack/permissionmanager&quot;: &quot;^6.0&quot;,
          &quot;fideloper/proxy&quot;: &quot;^4.2&quot;,
          &quot;fruitcake/laravel-cors&quot;: &quot;^1.0&quot;,
          &quot;guzzlehttp/guzzle&quot;: &quot;^6.3&quot;,
          &quot;intervention/image&quot;: &quot;^2.5&quot;,
          &quot;laravel/framework&quot;: &quot;^7.0&quot;,
          &quot;laravel/tinker&quot;: &quot;^2.0&quot;,
          &quot;superbalist/laravel-google-cloud-storage&quot;: &quot;^2.2&quot;
      },
      &quot;require-dev&quot;: {
          &quot;backpack/generators&quot;: &quot;^3.1&quot;,
          &quot;facade/ignition&quot;: &quot;^2.0&quot;,
          &quot;fzaninotto/faker&quot;: &quot;^1.9.1&quot;,
          &quot;laracasts/generators&quot;: &quot;^1.1&quot;,
          &quot;mockery/mockery&quot;: &quot;^1.3.1&quot;,
          &quot;nunomaduro/collision&quot;: &quot;^4.1&quot;,
          &quot;phpunit/phpunit&quot;: &quot;^8.5&quot;
      },
      &quot;config&quot;: {
          &quot;optimize-autoloader&quot;: true,
          &quot;preferred-install&quot;: &quot;dist&quot;,
          &quot;sort-packages&quot;: true
      },
      &quot;extra&quot;: {
          &quot;laravel&quot;: {
              &quot;dont-discover&quot;: []
          }
      },
      &quot;autoload&quot;: {
          &quot;psr-4&quot;: {
              &quot;App\\&quot;: &quot;app/&quot;
          },
          &quot;classmap&quot;: [
              &quot;database/seeds&quot;,
              &quot;database/factories&quot;
          ]
      },
      &quot;autoload-dev&quot;: {
          &quot;psr-4&quot;: {
              &quot;Tests\\&quot;: &quot;tests/&quot;
          }
      },
      &quot;minimum-stability&quot;: &quot;dev&quot;,
      &quot;prefer-stable&quot;: true,
      &quot;scripts&quot;: {
          &quot;post-autoload-dump&quot;: [
              &quot;Illuminate\\Foundation\\ComposerScripts::postAutoloadDump&quot;,
              &quot;@php artisan package:discover --ansi&quot;
          ],
          &quot;post-root-package-install&quot;: [
              &quot;@php -r \&quot;file_exists('.env') || copy('.env.example', '.env');\&quot;&quot;
          ],
          &quot;post-create-project-cmd&quot;: [
              &quot;@php artisan key:generate --ansi&quot;
          ],
          &quot;post-install-cmd&quot;: [
              &quot;composer clearcache&quot;,
              &quot;chmod -R 755 bootstrap\/cache&quot;,
              &quot;php artisan cache:clear&quot;,
              &quot;php artisan config:clear&quot;
          ]
      }
  }
  
  </code></pre>