Upgrading Laravel 5.4 to latest version (5.7)

后端 未结 8 1696
再見小時候
再見小時候 2021-02-14 12:13

I am working on Laravel 5.4 with PHP version 5.6.4. My goal is to upgrade my project to Laravel 5.7 with PHP 7.1.

Now my question is: Do I have to upgrade to 5.5 > 5.6 >

8条回答
  •  孤街浪徒
    2021-02-14 12:38

    Just update your laravel/framework dependency to 5.7.* in your composer.json file:

    "require": {
        "php": "^7.1.3",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "5.7.*",
        "laravel/tinker": "^1.0"
    },
    

    After, run this command on your command prompt: composer update

    You will achieve success and your Larvael will change to version 5.7, more details are available on upgrade guide

提交回复
热议问题