简体   繁体   English

Laravel 5安装软件包时出现错误

[英]Laravel 5 error while installing package

当我从laravel 4.2升级到laravel 5时,从composer安装软件包时出现此错误

Call to undefined method Illuminate\Config\Repository::package()

This problem is because the package you're trying to use has not yet been updated to work with Laravel 5. 这个问题是因为您要使用的软件包尚未更新以与Laravel 5一起使用。

There is no work around or fix, you must wait for the package to be updated, or fork it and submit a PR 无法解决或修复,您必须等待软件包更新,或派生它并提交PR

add this to your composer.json 将此添加到您的composer.json

"require": { "laravel/framework": "dev-master#846c935194a036901ba6b4397c8897fa51e19111", ... } “要求”:{“ laravel / framework”:“ dev-master#846c935194a036901ba6b4397c8897fa51e19111”,...}

for more information see link below: 有关更多信息,请参见下面的链接:

https://laracasts.com/discuss/channels/general-discussion/l5-latest-commit-breaks-if-using-waygenerators-or-image-internvention https://laracasts.com/discuss/channels/general-discussion/l5-latest-commit-breaks-if-using-waygenerators-or-image-internvention

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM