title: Unable to clear cache - "Class App\Console\Kernel does not exist " error
body: <p>The file actually exists.  Not sure how to fix the error.  Trying to clear the cache because the code changes I made in the file is not displaying on my site. I couldn't submit it because StackOverflow was telling me this post had too much code.</p>
  
  <pre><code>PHP Fatal error:  Uncaught ReflectionException: Class App\Console\Kernel does not exist in /var/www/stage/vendor/laravel/framework/src/Illuminate/Container/Container.php:752
       Stack trace:
  #0 /var/www/stage/vendor/laravel/framework/src/Illuminate/Container/Container.php(752): ReflectionClass-&gt;__construct('App\\Console\\Ker...')
  #1 /var/www/stage/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container-&gt;build('App\\Console\\Ker...')
  #2 /var/www/stage/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\Container\Container-&gt;resolve('App\\Console\\Ker...', Array)
  #3 /var/www/stage/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\Container\Container-&gt;make('App\\Console\\Ker...', Array)
  #4 /var/www/stage/vendor/laravel/framework/src/Illuminate/Container/Container.php(256): Illuminate\Foundation\Application-&gt;make('App\\Console\\Ker...', Array)
  #5 /var/www/stage/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): in /var/www/stage/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 752
  </code></pre>
  
  <p>Inside my composer file.  Saw someone with similar problem post theirs so I thought it might help.</p>
  
  <pre><code>    {
      "name": "laravel/laravel",
      "description": "The Laravel Framework.",
      "keywords": ["framework", "laravel"],
      "license": "MIT",
      "type": "project",
      "require": {
          "php": "&gt;=7.0.0",
          "laravel/framework": "5.5.*",
          "maatwebsite/excel": "~2.1.0",
          "laravelcollective/html": "~5.0",
          "phpoffice/phpspreadsheet": "^1.2",
          "symfony/dom-crawler": "^4.0",
          "watson/sitemap": "^2.0",
          "laravel/socialite": "^3.1"
      },
      "require-dev": {
          "filp/whoops": "~2.0",
          "fzaninotto/faker": "~1.4",
          "mockery/mockery": "0.9.*",
          "phpunit/phpunit": "~6.0",
          "symfony/css-selector": "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"
          ],
          "pre-update-cmd": [
              "php artisan clear-compiled"
          ],
          "post-update-cmd": [
              "php artisan optimize"
          ],
           "post-autoload-dump": [
              "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
              "@php artisan package:discover"
          ]
      },
      "config": {
          "preferred-install": "dist"
      }
       }
  </code></pre>
  
  <p>Somebody requested to see what the Kernel file looks like:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Console;
  
  use Illuminate\Console\Scheduling\Schedule;
  use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  
   class Kernel extends ConsoleKernel
  {
      /**
       * The Artisan commands provided by your application.
       *
       * @var array
       */
      protected $commands = [
          // Commands\Inspire::class,
      ];
  
      /**
       * Define the application's command schedule.
       *
       * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
       * @return void
       */
      protected function schedule(Schedule $schedule)
      {
          // $schedule-&gt;command('inspire')
          //          -&gt;hourly();
      }
  }```
  
  </code></pre>