title: Composer json gives runtime exception
body: <p>I am using <code>laravel 4</code>, when running <code>composer update</code>, I get the following exception:</p>
  
  <pre><code>$ composer update
  {"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","me
  ssage":"Class 'Zizaco\\Confide\\ConfideServiceProvider' not found","file":"C:\\x
  ampp\\htdocs\\laravel_project\\lara\\vendor\\laravel\\framework\\src\\I
  lluminate\\Foundation\\ProviderRepository.php","line":157}}Script php artisan cl
  ear-compiled handling the pre-update-cmd event returned with an error
  
  
  
    [RuntimeException]
    Error Output:
  
  
  
  update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock]
   [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-
  dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [
  packagesN]
  </code></pre>
  
  <p>This is my <code>composer</code> file</p>
  
  <pre><code>{
      "name": "andrew13/Laravel-4-Bootstrap-Starter-Site",
      "description": "Laravel 4 Starter Site",
      "keywords": ["laravel", "Starter Site"],
      "license": "MIT",
      "require": {
          "laravel/framework": "~4.2",
          "zizaco/confide": "~4.0@dev",
          "zizaco/entrust": "1.2.*@dev",
          "bllim/datatables": "~1.3",
          "fzaninotto/faker": "1.3.*@dev",
          "barryvdh/laravel-debugbar": "~1.7"
      },
      "require-dev": {
          "way/generators": "~2.6",
          "phpunit/phpunit": "~4.0",
          "mockery/mockery": "~0.9",
          "summerstreet/woodling": "~0.1.6",
          "barryvdh/laravel-ide-helper": "~1.11"
      },
      "autoload": {
          "classmap": [
              "app/commands",
              "app/controllers",
              "app/library",
              "app/models",
              "app/database/migrations",
              "app/database/seeds",
              "app/tests/library",
              "app/controllers/admin",
              "app/controllers/user"
          ]
      },
      "scripts": {
          "pre-update-cmd": [
              "php artisan clear-compiled"
          ],
          "post-install-cmd": [
              "php artisan optimize"
          ],
          "post-update-cmd": [
              "php artisan optimize"
          ],
          "post-create-project-cmd": [
              "php artisan key:generate"
          ],
          "post-update-cmd":[
              "php artisan ide-helper:generate"
          ]
      },
      "config": {
          "preferred-install": "dist"
      }
  }
  </code></pre>
  
  <p>Any recommendations what I am doing wrong?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <pre><code>$ php artisan clear-compiled
  {"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","me
  ssage":"Class 'Zizaco\\Confide\\ConfideServiceProvider' not found","file":"C:\\x
  ampp\\htdocs\\laravel_project\\lara\\vendor\\laravel\\framework\\src\\I
  lluminate\\Foundation\\ProviderRepository.php","line":157}}
  </code></pre>
  
  <p><strong>UPDATE 2</strong></p>
  
  <pre><code>User@User-PC /c/xampp/htdocs/laravel_project/lara(master)
  $ composer dump-autoload
  Generating autoload files
  
  User@User-PC /c/xampp/htdocs/laravel_project/lara(master)
  $ php artisan clear-compiled
  {"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","me
  ssage":"Class 'Zizaco\\Confide\\ConfideServiceProvider' not found","file":"C:\\x
  ampp\\htdocs\\laravel_project\\lara-scrapper\\vendor\\laravel\\framework\\src\\I
  lluminate\\Foundation\\ProviderRepository.php","line":157}}
  </code></pre>
  
  <p><strong>UPDATE 3</strong></p>
  
  <pre><code> 'providers' =&gt; array(
          /* Laravel Base Providers */
          'Illuminate\Foundation\Providers\ArtisanServiceProvider',
          'Illuminate\Auth\AuthServiceProvider',
          'Illuminate\Cache\CacheServiceProvider',
          'Illuminate\Session\CommandsServiceProvider',
          'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
          'Illuminate\Routing\ControllerServiceProvider',
          'Illuminate\Cookie\CookieServiceProvider',
          'Illuminate\Database\DatabaseServiceProvider',
          'Illuminate\Encryption\EncryptionServiceProvider',
          'Illuminate\Filesystem\FilesystemServiceProvider',
          'Illuminate\Hashing\HashServiceProvider',
          'Illuminate\Html\HtmlServiceProvider',
          'Illuminate\Log\LogServiceProvider',
          'Illuminate\Mail\MailServiceProvider',
          'Illuminate\Database\MigrationServiceProvider',
          'Illuminate\Pagination\PaginationServiceProvider',
          'Illuminate\Queue\QueueServiceProvider',
          'Illuminate\Redis\RedisServiceProvider',
          'Illuminate\Remote\RemoteServiceProvider',
          'Illuminate\Auth\Reminders\ReminderServiceProvider',
          'Illuminate\Database\SeedServiceProvider',
          'Illuminate\Session\SessionServiceProvider',
          'Illuminate\Translation\TranslationServiceProvider',
          'Illuminate\Validation\ValidationServiceProvider',
          'Illuminate\View\ViewServiceProvider',
          'Illuminate\Workbench\WorkbenchServiceProvider',
  
          /* Additional Providers */
          'Zizaco\Confide\ConfideServiceProvider', // Confide Provider
          'Zizaco\Entrust\EntrustServiceProvider', // Entrust Provider for roles
          'Bllim\Datatables\DatatablesServiceProvider', // Datatables
  
          /* Uncomment for use in development */
          'Way\Generators\GeneratorsServiceProvider', // Generators
          'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider', // IDE Helpers
          'Barryvdh\Debugbar\ServiceProvider', //Debugbar
      ),
  
      /*
      |--------------------------------------------------------------------------
      | Service Provider Manifest
      |--------------------------------------------------------------------------
      |
      | The service provider manifest is used by Laravel to lazy load service
      | providers which are not needed for each request, as well to keep a
      | list of all of the services. Here, you may set its storage spot.
      |
      */
  
      'manifest' =&gt; storage_path() . '/meta',
  
      /*
      |--------------------------------------------------------------------------
      | Class Aliases
      |--------------------------------------------------------------------------
      |
      | This array of class aliases will be registered when this application
      | is started. However, feel free to register as many as you wish as
      | the aliases are "lazy" loaded so they don't hinder performance.
      |
      */
  
      'aliases' =&gt; array(
          /* Laravel Base Aliases */
          'App'             =&gt; 'Illuminate\Support\Facades\App',
          'Artisan'         =&gt; 'Illuminate\Support\Facades\Artisan',
          'Auth'            =&gt; 'Illuminate\Support\Facades\Auth',
          'Blade'           =&gt; 'Illuminate\Support\Facades\Blade',
          'Cache'           =&gt; 'Illuminate\Support\Facades\Cache',
          'ClassLoader'     =&gt; 'Illuminate\Support\ClassLoader',
          'Config'          =&gt; 'Illuminate\Support\Facades\Config',
          'Controller'      =&gt; 'Illuminate\Routing\Controller',
          'Cookie'          =&gt; 'Illuminate\Support\Facades\Cookie',
          'Crypt'           =&gt; 'Illuminate\Support\Facades\Crypt',
          'DB'              =&gt; 'Illuminate\Support\Facades\DB',
          'Eloquent'        =&gt; 'Illuminate\Database\Eloquent\Model',
          'Event'           =&gt; 'Illuminate\Support\Facades\Event',
          'File'            =&gt; 'Illuminate\Support\Facades\File',
          'Form'            =&gt; 'Illuminate\Support\Facades\Form',
          'Hash'            =&gt; 'Illuminate\Support\Facades\Hash',
          'HTML'            =&gt; 'Illuminate\Support\Facades\HTML',
          'Input'           =&gt; 'Illuminate\Support\Facades\Input',
          'Lang'            =&gt; 'Illuminate\Support\Facades\Lang',
          'Log'             =&gt; 'Illuminate\Support\Facades\Log',
          'Mail'            =&gt; 'Illuminate\Support\Facades\Mail',
          'Paginator'       =&gt; 'Illuminate\Support\Facades\Paginator',
          'Password'        =&gt; 'Illuminate\Support\Facades\Password',
          'Queue'           =&gt; 'Illuminate\Support\Facades\Queue',
          'Redirect'        =&gt; 'Illuminate\Support\Facades\Redirect',
          'Redis'           =&gt; 'Illuminate\Support\Facades\Redis',
          'Request'         =&gt; 'Illuminate\Support\Facades\Request',
          'Response'        =&gt; 'Illuminate\Support\Facades\Response',
          'Route'           =&gt; 'Illuminate\Support\Facades\Route',
          'Schema'          =&gt; 'Illuminate\Support\Facades\Schema',
          'Seeder'          =&gt; 'Illuminate\Database\Seeder',
          'Session'         =&gt; 'Illuminate\Support\Facades\Session',
          'SoftDeletingTrait' =&gt; 'Illuminate\Database\Eloquent\SoftDeletingTrait',
          'SSH'             =&gt; 'Illuminate\Support\Facades\SSH',
          'Str'             =&gt; 'Illuminate\Support\Str',
          'URL'             =&gt; 'Illuminate\Support\Facades\URL',
          'Validator'       =&gt; 'Illuminate\Support\Facades\Validator',
          'View'            =&gt; 'Illuminate\Support\Facades\View',
  
          /* Additional Aliases */
          'Confide'         =&gt; 'Zizaco\Confide\ConfideFacade', // Confide Alias
          'Entrust'         =&gt; 'Zizaco\Entrust\EntrustFacade', // Entrust Alias
          'String'          =&gt; 'Andrew13\Helpers\String', // String
          'Carbon'          =&gt; 'Carbon\Carbon', // Carbon
          'Datatables'      =&gt; 'Bllim\Datatables\Datatables', // DataTables
  
      ),
  </code></pre>