Matt
Matt

Reputation: 367

Laravel 5 composer wont update class not found

Whenever I do composer update or artisan cache:clear and I get the following error:

[Symfony\Component\Debug\Exception\FatalThrowableError]
Fatal error: Class 'Aws\Laravel\AwsServiceProvider' not found

My app.php config file doesn't contain the AWS in the providers and or aliases. I've tried adding 'Aws\Laravel\AwsServiceProvider::class,' under providers and 'AWS => Aws\Laravel\AwsFacade::class,' under aliases but still the same issue. I think something is caching weird and doesn't recognize the updates I'm doing on app.php config file.

Upvotes: 4

Views: 3994

Answers (2)

snipe
snipe

Reputation: 510

  • delete the files (not the directory) in bootstrap/cache
  • run composer dump-autoload
  • remove config/aws.php if it exists
  • run composer install

Upvotes: 3

yoeunes
yoeunes

Reputation: 2945

just do a : composer dump-autoload and after that try to run you command like normal: composer update

Upvotes: 0

Related Questions