Simpledev
Simpledev

Reputation: 647

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.

Upvotes: 0

Views: 3299

Answers (3)

Shibbir Ahmad
Shibbir Ahmad

Reputation: 143

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

composer dump-autoload

Upvotes: 0

Simpledev
Simpledev

Reputation: 647

Ok I solved the problem.

First delete the bootstrap/cache/packages.php then

rm -rf vendor

composer install --no-dev

Upvotes: -2

Stf Kolev
Stf Kolev

Reputation: 730

Try deleting the cache in laravel project folder, you navigate to bootstrap folder, then delete items in cache.

Upvotes: 8

Related Questions