Head into your Homestead directory (likely ~/Code/homestead
) and open Homestead.yaml
.
Remove the webdriver: true
line & swap any php: "7.3"
lines to php: "7.4"
, like this:
features:
- mongodb: true
- mariadb: true
- - webdriver: true
sites:
- map: aurora.test
to: /home/vagrant/Code/aurora/public
- php: "7.3"
+ php: "7.4"
- map: northstar.test
to: /home/vagrant/Code/northstar/public
- php: "7.3"
+ php: "7.4"
- map: phoenix.test
to: /home/vagrant/Code/phoenix-next/public
- php: "7.3"
+ php: "7.4"
- map: rogue.test
to: /home/vagrant/Code/rogue/public
- php: "7.3"
+ php: "7.4"
- map: chompy.test
to: /home/vagrant/Code/chompy/public
- php: "7.3"
+ php: "7.4"
Then, run the following commands from your Homestead directory.
This may take up to 30 minutes, so grab a coffee & read up on new features in PHP 7.4 while you wait! ☕
# Get the latest Homestead release and re-build:
git fetch --tags && git checkout v10.10.1
vagrant destroy && vagrant up
You will also lose all local databases when rebuilding your Homestead box, so you'll have to re-run migrations and seeders. In each application directory (and running inside your Homestead box), run the following command:
php artisan migrate --seed
If you hit any roadblocks, let me know & I'd be happy to jump on a call to troubleshoot!
Dropping this here since there may be similar issues with other projects: DoSomething/rogue#1101
Not sure if maybe I was just running into something unique though...