4

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.

Matt
  • 367
  • 5
  • 17

2 Answers2

3
  • delete the files (not the directory) in bootstrap/cache
  • run composer dump-autoload
  • remove config/aws.php if it exists
  • run composer install
snipe
  • 517
  • 2
  • 10
  • 23
0

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

yoeunes
  • 2,927
  • 2
  • 15
  • 26