gsk
gsk

Reputation: 2379

Missing 'Illuminate\Routing\ControllerServiceProvider' class on Laravel 5.2

I have updated the composer.json file as instructed on the upgrade guide on Laravel 5.2 Documentation and run composer update.

Everything was updated correctly, but composer dumped the error below while generating autoload files.

Class 'Illuminate\Routing\ControllerService Provider' not found in /home/vagrant/Code/homework/vendor/laravel/framework /src/Illuminate/Foundation/ProviderRepository.php on line 146

Upvotes: 2

Views: 9924

Answers (2)

SwR
SwR

Reputation: 632

Problem is with your composer.json.It may got corrupted. Make sure

"require": { "laravel/framework": "5.2.*" },

exists.Then run composer update.

Upvotes: 0

tptcat
tptcat

Reputation: 3961

Make sure you remove Illuminate\Routing\ControllerServiceProvider from your /config/app.php.

https://www.laravel.com/docs/5.2/upgrade (see the "Service Providers" section)

Upvotes: 6

Related Questions