title: Composer install will not work using Laravel unless I comment out service provider in the config
body: <p>I am having a textbook catch 22 problem with service providers in Laravel... When I deploy an application to my live server and I run <strong><em>composer update</em></strong> it will fail because I have added a service provider in the Laravel config that has not yet been installed. But I need to run <strong><em>composer update</em></strong> in order to install it in the first place!</p>
  
  <p>I have worked around the problem by commenting out my service provider in config/app.php and then running <strong><em>composer update</em></strong> then un-commenting it again and the app works. I would prefer not to do this as I am using Envoyer for my deployment and the whole idea of Envoyer is be super quick deployment. Has anyone got a proper fix for this?</p>
  
  <p><strong>config/app.php (snippet)</strong></p>
  
  <pre><code>'providers' =&gt; [
  
          /*
           * Laravel Framework Service Providers...
           */
          Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
          Illuminate\Auth\AuthServiceProvider::class,
          Illuminate\Broadcasting\BroadcastServiceProvider::class,
          Illuminate\Bus\BusServiceProvider::class,
          Illuminate\Cache\CacheServiceProvider::class,
  ...
          /*
           * Added Service Providers...
           */
          Laracasts\Utilities\JavaScript\JavaScriptServiceProvider::class,
          Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class
  
      ],
  </code></pre>
  
  <p><strong>composer error after update attempt</strong></p>
  
  <pre><code>[Symfony\Component\Debug\Exception\FatalThrowableError]                                  
    Fatal error: Class 'Laracasts\Utilities\JavaScript\JavaScriptServiceProvider' not found  
  </code></pre>