Skip to content

Commit a4025f9

Browse files
committed
📚 Adding docs on Homestead multiple PHP versions via Homestead.yaml
1 parent 8296a62 commit a4025f9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

homestead.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- [Configuring Cron Schedules](#configuring-cron-schedules)
1616
- [Ports](#ports)
1717
- [Sharing Your Environment](#sharing-your-environment)
18+
- [Multiple PHP Versions](#multiple-php-versions)
1819
- [Network Interfaces](#network-interfaces)
1920
- [Updating Homestead](#updating-homestead)
2021
- [Old Versions](#old-versions)
@@ -334,6 +335,18 @@ After running the command, you will see an Ngrok screen appear which contains th
334335

335336
> {note} Remember, Vagrant is inherently insecure and you are exposing your virtual machine to the Internet when running the `share` command.
336337
338+
<a name="multiple-php-versions"></a>
339+
### Multiple PHP Versions
340+
341+
Homestead version 6 introduces support for multiple versions of PHP on the same box. You can specify what version of PHP to use with your project via `Homestead.yaml`:
342+
343+
sites:
344+
- map: homestead.app
345+
to: /home/vagrant/Code/Laravel/public
346+
php: "5.6"
347+
348+
The available PHP versions are: "5.6", "7.0", and "7.1".
349+
337350
<a name="network-interfaces"></a>
338351
## Network Interfaces
339352

0 commit comments

Comments
 (0)