简体   繁体   中英

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.

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

只做一个: composer dump-autoload然后尝试像普通的那样运行你的命令: composer update

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