X
X
xaam2017-12-30 19:40:31
Vagrant
xaam, 2017-12-30 19:40:31

How to change php5.6 to php7 in homestead?

I am learning Laravel using laracast with our subtitles https://laravel.ru/~Laracasts.
I installed everything, but php is installed with version 5.6, how can I install it with version 7.1?
Homestead is installed as follows composer global require "laravel/homestead=~2.0"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-12-30
@Maksclub

put the second version in vain (now 7 is up-to-date), put it simply:
by default, the latest version is PHP 7.2, but you can change it:
I don’t know why global is put in Laracast, I didn’t look at them at all ... maybe there’s something sensible (didn’t work with Laravel), but in general, install it on the dock - it is up-to-date, installation via composer is described here:
https://laravel.com/docs/5.5/homestead#per-project...
Homestead.yml generation:
php vendor/bin/homestead make

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question