Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel valet change php version doesn't work on mac os

I try to change PHP version used by valet, so I execute following command:

valet use [email protected]

Valet return a success message: Valet is now using [email protected].

But if I use phpinfo() on a .test website, I see that php is in 7.3.

I've changed the php version several times this way, it always worked. I don't understand what's wrong now...

like image 331
ZecKa Avatar asked Jan 25 '26 22:01

ZecKa


1 Answers

Building on ZecKa's answer, I was able to get it working with just these commands:

valet stop
rm ~/.config/valet/valet.sock
valet start
like image 129
clifgriffin Avatar answered Jan 29 '26 03:01

clifgriffin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!