简体   繁体   English

Laravel 5作曲家不会更新未找到的课程

[英]Laravel 5 composer wont update class not found

Whenever I do composer update or artisan cache:clear and I get the following error: 每当我做composer updateartisan cache:clear ,我收到以下错误:

[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. 我的app.php配置文件不包含提供程序和/或别名中的AWS。 I've tried adding 'Aws\\Laravel\\AwsServiceProvider::class,' under providers and 'AWS => Aws\\Laravel\\AwsFacade::class,' under aliases but still the same issue. 我尝试在提供者和'AWS => Aws\\Laravel\\AwsFacade::class,' 'Aws\\Laravel\\AwsServiceProvider::class,'下添加'Aws\\Laravel\\AwsServiceProvider::class,' 'AWS => Aws\\Laravel\\AwsFacade::class,'在别名下但仍然是同一个问题。 I think something is caching weird and doesn't recognize the updates I'm doing on app.php config file. 我认为有些东西是缓存怪异的,并且无法识别我在app.php配置文件中所做的更新。

  • delete the files (not the directory) in bootstrap/cache 删除bootstrap/cache的文件(不是目录)
  • run composer dump-autoload 运行composer dump-autoload
  • remove config/aws.php if it exists 删除config/aws.php如果存在)
  • run composer install 运行composer install

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Laravel:未完全更新作曲家类 - Laravel: Class not found altough composer update 更新作曲家(Laravel 5.1)后找不到类Illuminate \\ Support \\ Composer - Class Illuminate\Support\Composer not found after composer update (Laravel 5.1) 作曲家更新时找不到类'Carbon\\Laravel\\ServiceProvider' - Class 'Carbon\Laravel\ServiceProvider' not found when composer update 找不到作曲家更新类Phar - composer update class phar not found 找不到Laravel自定义作曲家libaray类 - Laravel custom composer libaray class not found 找不到作曲家Laravel类'yajra \\ Datatables \\ DatatablesServiceProvider' - Composer Laravel Class 'yajra\Datatables\DatatablesServiceProvider' not found Laravel找不到Composer仓库git类 - Composer repository git class not found with Laravel 在laravel 5.4中。 找不到作曲家更新FatalThrowableError类'Unisharp \\ Laravelfilemanager \\ LaravelFilemanagerServiceProvider' - In laravel 5.4. composer update FatalThrowableError Class 'Unisharp\Laravelfilemanager\LaravelFilemanagerServiceProvider' not found 作曲家更新导致Laravel在服务器上找不到类 - Composer update causing Laravel to not find class on server 界面'Symfony \\ Contracts \\ Translation \\ LocaleAwareInterface'未找到 - 更新laravel composer时 - Interface 'Symfony\Contracts\Translation\LocaleAwareInterface' not found - When update laravel composer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM