Laravel:如何更新存储/框架中的软件包 [英] Laravel: How to update packages in storage/framework
问题描述
我用composer remove
删除了一个程序包,现在它已从composer.json
和composer.lock
文件中删除,并且也从vendor
目录中删除了.但是我注意到它仍然在以下两个文件中列出:storage/framework/packages.php
和storage/framework/services.php
.如何更新/重建这些文件?
另外,当我在项目的根目录中运行php artisan
时,也会出现此错误:
I have removed a package with composer remove
and it's now removed from composer.json
and composer.lock
files and also removed from vendor
directory. But I noticed that it's still listed in these two files: storage/framework/packages.php
and storage/framework/services.php
. How can I update/rebuild these files?
Also, when I run php artisan
in the root of my project, I get this error:
[Symfony \ Component \ Debug \ Exception \ FatalThrowableError] 找不到"Morilog \ Jalali \ JalaliServiceProvider"类
[Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Morilog\Jalali\JalaliServiceProvider' not found
我搜索了该项目的所有文件,发现JalaliServiceProvider
仍然仅在上述两个文件中列出.
I searched in all the files of the project and found JalaliServiceProvider
still listed only in the two above-mentioned files.
推荐答案
尝试在终端一次运行composer dump-autoload
这篇关于Laravel:如何更新存储/框架中的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!