Laravel:如何更新存储/框架中的软件包 [英] Laravel: How to update packages in storage/framework

查看:76
本文介绍了Laravel:如何更新存储/框架中的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用composer remove删除了一个程序包,现在它已从composer.jsoncomposer.lock文件中删除,并且也从vendor目录中删除了.但是我注意到它仍然在以下两个文件中列出:storage/framework/packages.phpstorage/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆