简体   繁体   中英

Class 'Carbon\Laravel\ServiceProvider' not found when composer update

When I try composer update in my Laravel project I have this error on the terminal

In ProviderRepository.php line 208:

Class 'Carbon\Laravel\ServiceProvider' not found

Any suggestions appreciated.

尝试删除 Laravel 项目文件夹中的缓存,导航到 bootstrap 文件夹,然后删除缓存中的项目。

run this command on your project. all require class will be download

composer dump-autoload

Ok I solved the problem.

First delete the bootstrap/cache/packages.php then

rm -rf vendor

composer install --no-dev

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM