title: How to fix "Uncaught ReflectionException: Class view does not exist" in Laravel after deployment to Ubuntu 18.04 server
body: <p>I am currently hosting an application on a ubuntu 16.04 server... but when i try to deploy the same code on fresh ubuntu 18.04 server i get the following error on my apache logs</p>
  
  <blockquote>
    <p>PHP Fatal error: Uncaught ReflectionException: Class view does not exist in /var/www/xxxxxxxxxxxx/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:788</p>
  </blockquote>
  
  <p>navigating to that line of code on my laravel project was</p>
  
  <pre class="lang-php prettyprint-override"><code>$reflector = new ReflectionClass($concrete);
  </code></pre>
  
  <p>I cleared the config in bootstrap/cache and ran composer dump-autoload to no avail</p>