Laravel 5.5.45至5.6

时间:2019-03-11 21:25:15

标签: laravel laravel-5 laravel-upgrade

看来我无法将laravel安装从5.5.54更新到5.6。

php artisan -V-> Laravel Framework 5.5.45 然后更新作曲家:

使用软件包信息加载composer存储库

  

更新依赖关系(包括require-dev)

     

无需安装或更新

     

软件包phpunit / phpunit-mock-objects被放弃了,您应该避免使用它。没有建议更换。

     

生成优化的自动加载文件   Illuminate \ Foundation \ ComposerScripts :: postAutoloadDump   @php artisan包:发现

     

发现的软件包:barryvdh / laravel-ide-helper   发现的软件包:fideloper / proxy   发现的软件包:laravel / tinker   发现的软件包:nesbot / carbon

     

打包清单成功生成。

然后是php artisan -V,但我又有了Laravel Framework 5.5.45。

我的composer.json:

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
    "php": ">=7.1.3",
    "fideloper/proxy": "^4.0",
    "doctrine/dbal": "^2.5",
    "intervention/image": "^2.3",
    "laravel/framework": "5.6.*",
    "laravelcollective/html": "^5.3",
    "spatie/laravel-permission": "^2.2",
    "laravel-tinker": "~1.0",
    "filp/whoops": "~2.0"
},
"require-dev": {
    "fzaninotto/faker": "~1.4",
    "filp/whoops": "~2.0",
    "barryvdh/laravel-ide-helper": "^2.1",
    "mockery/mockery": "~1.0",
    "phpunit/phpunit": "^7.0"
},
"autoload": {
    "classmap": [
        "database"
    ],
    "psr-4": {
        "App\\": "app/"
    }
},
"autoload-dev": {
    "psr-4": {
        "Tests\\": "tests/"
    }
},
"scripts": {
    "post-root-package-install": [
        "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ],
    "post-install-cmd": [
        "Illuminate\\Foundation\\ComposerScripts::postInstall",
        "php artisan optimize"
    ],
    "post-update-cmd": [
        "Illuminate\\Foundation\\ComposerScripts::postUpdate",
        "php artisan optimize"
    ],
    "post-autoload-dump": [
        "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
        "@php artisan package:discover"
    ]
},
"config": {
    "preferred-install": "dist",
    "sort-packages": true,
    "optimize-autoloader": true
}

}

感谢您的帮助。 伊曼纽尔

0 个答案:

没有答案