Answer the question
In order to leave comments, you need to log in
How to get rid of the console command cache?
In general, I previously created a command via php artisan make: command Test
I registered it only in app/Console/Kernal.php
Then, over time, I renamed the file and corrected it in app/Console/Kernal.php, however, all artisan commands stopped working and display an error ( laravel.log):
[2017-07-10 08:42:21] production.ERROR: ErrorException: include(/var/www/vendor/composer/../../app/Console/Commands/Test.php): failed to open stream: No such file or directory in /var/www/vendor/composer/ClassLoader.php:444
Stack trace:
#0 /var/www/vendor/composer/ClassLoader.php(444): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(/var/ww...', '/var/www/vendor...', 444, Array)
#1 /var/www/vendor/composer/ClassLoader.php(444): include()
#2 /var/www/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/vendor...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('App\\Console\\Com...')
#4 [internal function]: spl_autoload_call('App\\Console\\Com...')
#5 /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\Console\\Com...')
#6 /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\Container\Container->build('App\\Console\\Com...')
#7 /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(575): Illuminate\Container\Container->resolve('App\\Console\\Com...')
#8 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(728): Illuminate\Container\Container->make('App\\Console\\Com...')
#9 /var/www/vendor/laravel/framework/src/Illuminate/Console/Application.php(192): Illuminate\Foundation\Application->make('App\\Console\\Com...')
#10 /var/www/vendor/laravel/framework/src/Illuminate/Console/Application.php(206): Illuminate\Console\Application->resolve('App\\Console\\Com...')
#11 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(285): Illuminate\Console\Application->resolveCommands(Array)
#12 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(122): Illuminate\Foundation\Console\Kernel->getArtisan()
#13 /var/www/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 {main}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question