10

I have a project which is done with Laravel 5.6. But My current server doesn't have php 7.1 installed yet. How is it possible to downgrade to Laravel 5.5?

1
  • 2
    You can remove your composer.lock and vendor files/folders and change laravel version to 5.5.* in composer.json file. I am not sure, If this method will work or not so Just take backup before you try this method. Let me know if it works or what issue you having. All the best! Commented Apr 18, 2018 at 6:19

1 Answer 1

21

I also down graded my project also, but then I was getting ton of errors. But most of them were about unfamiliar key words and unsupported packages. So, success depends on your project’s dependencies and also your effort.

Follow these steps.

  1. Backup your project

  2. Change the value of Laravel version inside the composer.json to Laravel 5.5

  3. Delete vendor folder

  4. Run composer install

** By then you will have to take care of any issues in your own code because there should be new functionalities in earlier versions which is not used in older.

Or

Go to this page and do the instructions in reverse order

4
  • 2
    Yup. Those four steps work. Only thing to look at is the dependancies, and of course the php you are using. Other than that it's pretty simple. Commented May 2, 2018 at 4:14
  • 3
    It's necessary to delete composer.lock file, then run composer install Commented Aug 7, 2018 at 7:31
  • You need to go to the official github releases and choose the version of your choice like 5.5 and copy the packages settings from there to your composer.json. Also you have to go to the packages that you have already and find their older versions if any exist for 5.5 and update that into your composer.json file and then follow the above mentioned steps. Commented Feb 5, 2019 at 10:20
  • i installed a new 5.5 project installed composer dependencies copied controllers,models,views and route file is this a correct way to do so ? Commented Jul 9, 2019 at 10:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.