Downgrade Laravel Homestead v7.0.1 with php 7.2 to php 7.1

What are the steps to upgrade php version to 7.1 and make default the latest version of Homestead 7, Homestead 7 has PHP 7.2 by default.

There are several development sites in my estate, I want everything to work on 7.1 by default, if I need 7.2, then I will use the following in my estate yaml

sites: - map: homestead.test to: /home/vagrant/Code/homestead/public php: "7.2" 
+5
source share
1 answer

You should not use older versions of Homestead if you just want to use a different version of PHP.

You can configure each site to use PHP 7.1, which does not hurt anything. You can change the CLI version by running php71 from the command line.

+4
source

Source: https://habr.com/ru/post/1274120/


All Articles