title: Class 'Illuminate\Foundation\Application' not found in laravel
body: <p>i dont really understand what happen to my laravel application. i never touch it for 7-14days because i need to focus on my project (written in CI). when my project was done, i go back to my laravel application to explore more about it. what happen next is beyond my imagination. i got this error on my browser :</p>
  
  <pre><code>Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in C:\xampp\htdocs\leadershipradar\bootstrap\app.php:14 Stack trace: #0 C:\xampp\htdocs\leadershipradar\public\index.php(23): require_once() #1 {main} thrown in C:\xampp\htdocs\leadershipradar\bootstrap\app.php on line 14
  </code></pre>
  
  <p>i search how to fix it. and i found this on stackoverflow :</p>
  
  <pre><code>http://stackoverflow.com/questions/34172644/getting-error-class-illuminate-foundation-application-not-found-in-laravel-5#
  
  http://stackoverflow.com/questions/34172644/getting-error-class-illuminate-foundation-application-not-found-in-laravel-5
  </code></pre>
  
  <p>i follow all instructions and got nothing.
  i also install new laravel and copy all logic, model, routes and view.
  but the error still happening.</p>
  
  <p>i did change the composer.json file into this :</p>
  
  <pre><code>"require": {
      "php": "&gt;=5.5.9",
      "laravelcollective/html": "5.1",
      "illuminate/routing": "5.1.1",
      "laravel/framework": "5.2.10",
      "illuminate/html": "^5.0"
  },
  </code></pre>
  
  <p>when i run composer update, i got new error in my cmd.
  <a href="https://i.stack.imgur.com/jxzB6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jxzB6.png" alt="enter image description here"></a></p>
  
  <p>please do help me to fix this issue.
  many thanks in advance.</p>
  
  <p>ps :</p>
  
  <p>this is my composer.json </p>
  
  <pre><code>{
      "name": "laravel/laravel",
      "description": "The Laravel Framework.",
      "keywords": ["framework", "laravel"],
      "license": "MIT",
      "type": "project",
      "require": {
          "php": "&gt;=5.5.9",
          "laravelcollective/html":"^5.2",
          "laravel/framework": "5.2.10"
      },
      "require-dev": {
          "fzaninotto/faker": "~1.4",
          "mockery/mockery": "0.9.*",
          "phpunit/phpunit": "~4.0",
          "symfony/css-selector": "2.8.*|3.0.*",
          "symfony/dom-crawler": "2.8.*|3.0.*"
      },
      "autoload": {
          "classmap": [
              "database"
          ],
          "psr-4": {
              "App\\": "app/"
          }
      },
      "autoload-dev": {
          "classmap": [
              "tests/TestCase.php"
          ]
      },
      "scripts": {
          "post-root-package-install": [
              "php -r \"copy('.env.example', '.env');\""
          ],
          "post-create-project-cmd": [
              "php artisan key:generate"
          ],
          "post-install-cmd": [
              "php artisan clear-compiled",
              "php artisan optimize"
          ],
          "post-update-cmd": [
              "php artisan clear-compiled",
              "php artisan optimize"
          ]
      },
      "config": {
          "preferred-install": "dist"
      }
  }
  </code></pre>