title: Upgrade Laravel 5.6 to 5.7
body: <p>I want to upgrade Laravel to 5.7 because I need new features, but I can't find any easy way.</p>
  
  <p>I followed these steps:-<a href="https://stackoverflow.com/questions/48594851/upgrading-laravel-5-5-to-5-6-error/">Upgrading Laravel Version</a> but I found an error during composer update </p>
  
  <p>I got this <a href="https://stackoverflow.com/questions/46986001/script-php-artisan-packagediscover-handling-the-post-autoload-dump-event-retur">error</a> and I also tried to solve the solution but it is not working </p>
  
  <p>My composer.json file:</p>
  
  <pre><code>    {
      "name": "laravel/laravel",
      "description": "The Laravel Framework.",
      "keywords": ["framework", "laravel"],
      "license": "MIT",
      "type": "project",
      "require": {
          "php": "^7.1.3",
          "fideloper/proxy": "^4.0",
          "laravel/framework": "5.7.*",
          "laravel/tinker": "^1.0"
      },
      "require-dev": {
          "filp/whoops": "^2.0",
          "fzaninotto/faker": "^1.4",
          "mockery/mockery": "^1.0",
          "nunomaduro/collision": "^2.0",
          "phpunit/phpunit": "^7.0"
      },
      "autoload": {
          "classmap": [
              "database/seeds",
              "database/factories"
          ],
          "psr-4": {
              "App\\": "app/"
          }
      },
      "autoload-dev": {
          "psr-4": {
              "Tests\\": "tests/"
          }
      },
      "extra": {
          "laravel": {
              "dont-discover": [
              ]
          }
      },
      "scripts": {
          "post-root-package-install": [
              "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
          ],
          "post-create-project-cmd": [
              "@php artisan key:generate"
          ],
          "post-autoload-dump": [
              "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
              "@php artisan package:discover"
          ]
      },
      "config": {
          "preferred-install": "dist",
          "sort-packages": true,
          "optimize-autoloader": true
      },
      "minimum-stability": "dev",
      "prefer-stable": true
  }
  </code></pre>
  
  <p><strong>How do I upgrade Laravel 5.6 to 5.7 with full instructions?</strong></p>