[英]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.