title: Why Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found
body: <p>I have a Laravel/Homestead project that is finally working locally.  Now I'm trying to port it over to HostGator and can't get it running due to titled error.  I've tried all the suggested solutions to no avail.  Including:</p>
  
  <pre><code>composer require laravel/laravel
  composer dump-autoload
  composer install --no-scripts
  composer update
  composer update --no-scripts
  </code></pre>
  
  <p>Nothing works.  Same error.  If this is a clue, I also tried</p>
  
  <pre><code>php artisan clear-compiled
  </code></pre>
  
  <p>and get response of</p>
  
  <blockquote>
    <p>Could not open input file: artisan</p>
  </blockquote>
  
  <p>I'm about ready to give up on Laravel/Homestead.  I've spent countless hours on this framework with nothing but problems to show for it.  Would not recommend it to anybody.</p>
  
  <p>You can see the error yourself here:
  <a href="http://www.tekknow.net/MedAverter/medaverter/" rel="nofollow noreferrer">http://www.tekknow.net/MedAverter/medaverter/</a></p>
  
  <p>Any suggestions before I throw in the towel?</p>