无法在Laravel 4.1中安装moltin购物车

时间:2016-01-12 08:22:42

标签: laravel composer-php

当我尝试安装moltin购物车时,它会显示以下错误

我的作曲家json代码是

var_dump((object) $test);
// output: object(stdClass)#1 (3) { E_NOTICE : type 8 -- Illegal member variable name -- at line 12 [""]=> string(6) "select" [1]=> string(8) "Internal" [2]=> string(8) "External" }

}

显示以下错误

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
    "laravel/framework": "4.1.*",
    "illuminate/support": "4.1.*",
    "intervention/image": "2.2.*",
    "moltin/laravel-cart": "dev-master"
},
"autoload": {
    "classmap": [
        "app/commands",
        "app/controllers",
        "app/models",
        "app/database/migrations",
        "app/database/seeds",
        "app/tests/TestCase.php"
    ]
},
"scripts": {
    "post-install-cmd": [
        "php artisan optimize"
    ],
    "post-update-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ]
},
"config": {
    "preferred-install": "dist"
},
"minimum-stability": "dev",
"prefer-stable": true

使用包信息加载composer存储库 更新依赖项(包括require-dev) 您的要求无法解析为可安装的软件包。

C:\xampp\htdocs\laravel>composer update

1 个答案:

答案 0 :(得分:0)

就在错误信息中:

moltin/laravel-cart dev-master requires laravel/framework ~5.0

您可以更新laravel或查找在4.1上运行的laravel-cart分支。可以是4.2 tag