Upgrading Laravel 5.4 to latest version (5.7)

后端 未结 8 1693
再見小時候
再見小時候 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:43

    For updating Laravel 6.x (Which means any subversions to V6)
    Just run this command

    cd [laravel installation directory]
    composer update

    You must have composer installed on your VM or PC.

    For Linux users only:

    Composer directory must be owned by current user

    //Check ownership
    ls -la ~/ | grep ".composer"
    
    //If you don't own the directory
    chown -R [user]/[user] ~/.composer
    

    Message me on any social media @smitpatelx Or leave a comment if you need any help or if your usecase differ from the above.

提交回复
热议问题