Published 6 months ago by m7vm7v
In a Laravel application I am returning phpinfo() in my route and it shows me 'PHP Version 7.0.20'
But when I run php --version in the terminal I have 'PHP 7.1.7 (cli)'.
I did 'brew unlink php70', 'brew link php71', 'brew services start php71'.
I have uninstalled php70 and all the dependencies with brew and did run valet restart.
I am running on mac machine with Laravel 5.2 with Valet and php 7.1.
Do you know how to link my php7.1 instead 7.0? Would that be a problem related with Valet or brew or php itself?
Thanks for your time
I've had this multiple times, if you run
valet stop, then
valet start, it should pick up the right version.
You should see something like this in the terminal when you run
Stopping php70... Stopping php71... Stopping nginx.... Valet services have been stopped.
Then when you start, you should notice it starts up the right version:
Restarting php71... Restarting nginx... Valet services have been started.