简体   繁体   English

我无法安装Laravel 4的软件包

[英]I Can't install Laravel 4's package

I just started learn Laravel 4, i have problem when install laravel's package, in this case it is: http://packalyst.com/packages/package/greggilbert/recaptcha 我刚刚开始学习Laravel 4,我在安装laravel的软件包时遇到问题,在这种情况下它是: http ://packalyst.com/packages/package/greggilbert/recaptcha

I do all steps, but it always display: Class 'Greggilbert\\Recaptcha\\RecaptchaServiceProvider' not found 我做了所有步骤,但它始终显示:未找到类'Greggilbert \\ Recaptcha \\ RecaptchaServiceProvider'

I think problem is i don't know where to put recaptcha-master.zip, root folder? 我觉得问题是我不知道在哪里放recaptcha-master.zip,root文件夹? or in Vendor folder? 或在供应商文件夹中? i don't know :( 我不知道 :(

Please help, thank you so much :( 请帮忙,非常感谢你:(

First you need to add "greggilbert/recaptcha": "dev-master" to the require section of your composer.json file found in the Laravel root. 首先,您需要将"greggilbert/recaptcha": "dev-master"到Laravel根目录中找到的composer.json文件的require部分。

Once thats done you then need to install composer globally or download a copy of composer.phar and move it to your Laravel root. 完成后,您需要全局安装composer或下载composer.phar的副本并将其移动到Laravel根目录。

Once either of those methods have been completed, you then need to run either composer update if you installed composer globally or php composer.phar update in order to install the new packages. 一旦完成了这些方法中的任何一个,那么如果你全局安装了composer,那么你需要运行composer update或者php composer.phar update来安装新的包。

After, and only after composer has updated with the new dependencies you should then add the service providers and other configurations to Laravel. 之后,只有在作曲家使用新的依赖关系更新之后,您才应该将服务提供者和其他配置添加到Laravel。

Heres a link to the composer site. 这是作曲家网站的链接。 http://getcomposer.org/ http://getcomposer.org/

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

相关问题 如何使用Laravel romanbican / roles包中的role()或getRoles()函数 - How can I use the roles() or getRoles() functions from the Laravel romanbican/roles package 无法从 python package 导入 class - Can't import a class from a python package 无法在同一个 package 中访问 class - can't access class in same package 为什么不能在父类的构造函数中设置类的属性? (php) - Why can't I set a class' properties in it's parent's constructor? (php) 为什么我不能用其他类的函数填充此类的函数指针 - Why can't i fill this class's function pointer with this other class's function 为什么我不能导入此类? 我看不到它是循环导入 - Why can I not import this class? I don't see how it's a circular import Laravel 5 Package,Class not found - Laravel 5 Package, Class not found 为什么我无法在对象的__setattr__方法中获取属性? - Why I can't fetch an attribute inside object's __setattr__ method? 为什么我不能访问派生构造函数的成员初始化列表中继承的受保护字段? - Why can't I access inherited protected fields in a derived constructor's member initialization list? 我无法重写基类的方法,因为我的派生类已被模板化 - I can't override Base class's method because my derived class is templatised
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM