title: Having trouble installing barryvdh/laravel-ide-helper via composer - class not found error in Laravel 4 project
body: <p>I have the following <strong>composer.json</strong> file for my <strong>Laravel 4.2.x</strong> project:</p>
  
  <pre><code>{
      "name": "laravel/laravel",
      "description": "The Laravel Framework.",
      "keywords": ["framework", "laravel"],
      "license": "MIT",
      "type": "project",
      "require": {
          "laravel/framework": "4.2.*",
          "cartalyst/sentry": "2.1.*",
          "way/generators": "2.*",
          "laracasts/flash": "~1.0",
          "guzzlehttp/guzzle": "~4.0",
          "itsgoingd/clockwork": "1.*",
          "barryvdh/laravel-ide-helper": "~1.11@dev",
          "intervention/image": "dev-master"
      },
      "autoload": {
          "classmap": [
              "app/commands",
              "app/controllers",
              "app/models",
              "app/database/migrations",
              "app/database/seeds",
              "app/tests/TestCase.php"
          ],
          "files": [
              "app/Latheesan/helpers.php"
          ],
          "psr-0": {
              "Latheesan": "app/"
          }
      },
      "scripts": {
          "post-install-cmd": [
              "php artisan clear-compiled",
              "php artisan ide-helper:generate",
              "php artisan optimize"
          ],
          "post-update-cmd": [
              "php artisan clear-compiled",
              "php artisan ide-helper:generate",
              "php artisan optimize"
          ],
          "post-create-project-cmd": [
              "php artisan key:generate"
          ]
      },
      "config": {
          "preferred-install": "dist"
      },
      "minimum-stability": "dev"
  }
  </code></pre>
  
  <p>This has been working fine until today. When I ran the <strong>composer update</strong> command, I got the following error:</p>
  
  <blockquote>
    <p>{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class
    'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider' not
    found","file":"C:\wamp\www\projectfolder\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php","line":157}}Script
    php artisan clear-compiled handling the post-update-cmd event returned
    with an error</p>
  </blockquote>
  
  <p>It looks like the package that caused the problem is <code>barryvdh/laravel-ide-helper</code> version <code>~1.11@dev</code></p>
  
  <p>On the project's <a href="https://github.com/barryvdh/laravel-ide-helper" rel="nofollow">home page</a> on github, it says:</p>
  
  <h2>For Laravel 4.x, <a href="https://github.com/barryvdh/laravel-ide-helper/tree/1.8" rel="nofollow">check version 1.8</a></h2>
  
  <p>But that appears to be a dead link. </p>
  
  <p>So, what is the correct require line to use on the <code>composer.json</code> file, for this package that supports laravel 4.x?</p>