title: Laravel: Class App\Console\Commands\BlockModelsDidNotShowUp does not exist
body: <p>I'm trying to run <code>composer update</code> on my project on a production server and I keep getting this error:</p>
  
  <pre><code>Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Nothing to install or update
  Generating autoload files
  &gt; Illuminate\Foundation\ComposerScripts::postUpdate
  &gt; php artisan optimize
  
  
    [ReflectionException]
    Class App\Console\Commands\BlockModelsDidNotShowUp does not exist
  
  
  Script php artisan optimize handling the post-update-cmd event returned with error code 1
  </code></pre>
  
  <p>Before this I had a <em>permission denied</em> error because of <code>/storage/logs/laravel.log file</code> - I've updated permissions on that file and I keep getting an error from above.</p>
  
  <p>I've tried <a href="https://stackoverflow.com/questions/33761186/l5-1-class-app-console-kernel-does-not-exist">this</a>, but I don't have <code>bootstrap/cache/compiled.php</code> file.</p>