[英]laravel cloned provider does not work (class not found)
I cloned a repository in github (Tightenco/ziggy) in which I made modifications to fit my use (just minor modifications which worked when i edited directly the original repo in the vendor). 我在github(Tightenco / ziggy)中克隆了一个存储库,在其中进行了修改以适合自己的使用(只是在我直接编辑供应商中的原始存储库时进行的较小修改即可)。 now I have a repo on my github account which contains my modifications.
现在我在github帐户上有一个仓库,其中包含我的修改。
In order to use it in my laravel project, I added theses lines to the composer.json then ran composer update: 为了在laravel项目中使用它,我将这些代码行添加到composer.json中,然后运行composer更新:
"repositories": [
{
"type": "package",
"package": {
"name": "tightenco/ziggy",
"version": "0.5.0",
"source": {
"type" : "git",
"url" : "git://github.com/Ctaque/ziggy.git",
"reference" : "master"
},
"dist": {
"url": "https://github.com/Ctaque/ziggy/archive/master.zip",
"type": "zip"
}
}
}
],
"require": {
...
"tightenco/ziggy":"0.5.*"
},
now i have a vendor with tightenco/ziggy which contains the repo with my modifications. 现在我有一个供应商带有ightenco / ziggy,其中包含经过修改的回购。 I followed the instructions to use the dependancy in Laravel (register the provider) And I get this error when registering the provider:
我按照说明在Laravel中使用依赖关系(注册提供程序),并且在注册提供程序时收到此错误:
"Class 'Tightenco\\Ziggy\\ZiggyServiceProvider' not found"
“找不到类'Tightenco \\ Ziggy \\ ZiggyServiceProvider'”
Any ideas? 有任何想法吗? How can I debug this?
我该如何调试?
Remove the stuff below repositories
and add 删除
repositories
下面的内容并添加
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Ctaque/ziggy"
}
],
Remove also the cloned folder from your vendors
dir. 也从您的
vendors
目录中删除克隆的文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.