【发布时间】:2018-01-11 21:18:54
【问题描述】:
更新我的代码库后我收到一个错误,我似乎无法解决它。我使用了一个不再使用的包,我通过正确的步骤到达removing the package like this answer,但我在控制台中所做的任何事情都失败了。
我试过跑步:
composer update
但我收到此错误:
user@my-app:~/example.com$ php artisan clear-compiled
PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Travoltron\Plaid\PlaidServiceProvider' not found in /home/user/example.com/bootstrap/cache/compiled.php:7825
Stack trace:
#0 /home/user/example.com/bootstrap/cache/compiled.php(7811): Illuminate\Foundation\ProviderRepository->createProvider('Travoltron\\Plai...')
#1 /home/user/example.com/bootstrap/cache/compiled.php(7787): Illuminate\Foundation\ProviderRepository->compileManifest(Array)
#2 /home/user/example.com/bootstrap/cache/compiled.php(1937): Illuminate\Foundation\ProviderRepository->load(Array)
#3 /home/user/example.com/bootstrap/cache/compiled.php(2357): Illuminate\Foundation\Application->registerConfiguredProviders()
#4 /home/user/example.com/bootstrap/cache/compiled.php(1796): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Illuminate\Foundation\Application))
#5 /home/user/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kerne in /home/user/example.com/bootstrap/cache/compiled.php on line 7825
PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalErrorException: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Travoltron\Plaid\PlaidServiceProvider' not found in /home/user/example.com/bootstrap/cache/compiled.php:7825
Stack trace:
#0 /home/user/example.com/bootstrap/cache/compiled.php(7811): Illuminate\Foundation\ProviderRepository->createProvider('Travoltron\\Plai...')
#1 /home/user/example.com/bootstrap/cache/compiled.php(7787): Illuminate\Foundation\ProviderRepository->compileManifest(Array)
#2 /home/user/example.com/bootstrap/cache/compiled.php(1937): Illuminate\Foundation\ProviderRepository->load(Array)
#3 /home/user/example.com/bootstrap/cache/compiled.php(2357): Illuminate\Foundation\Application->registerConfiguredProviders()
#4 /home/user/example.com/bootstrap/cache/compiled.php(1796): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Illuminate\Foundation\Application))
#5 /home/user/example.com/ in /home/user/example.com/bootstrap/cache/compiled.php on line 7825
我已经尝试运行这些命令,但收到相同的错误:
composer install
composer dump-autoload
php artisan config:cache
php artisan config:clear
php artisan clear-compiled
我的问题是, 因为这看起来只是在获取已编译类的缓存版本,有没有办法手动删除已编译的缓存,因为我无法通过命令?
【问题讨论】:
-
in /home/user/example.com/bootstrap/cache/compiled.php只是删除这个文件?