Today, I needed to setup Laravel 8 and for that purpose I want to install
7.4 at the very least. As, I am using Laravel Valet on my MacBook, so I tried to install it via the following command:
valet use email@example.com
but after some time, I got some error and after that no water what command:
valet etc I tried and each time I got the following error:
After googling for a while, found that there is not proper fix for this one but I have remove all the existing
php versions and re-install it again.
So, I started by removing all the existing
php versions (
8) via the following command:
sudo rm -rf /usr/local/Cellarfirstname.lastname@example.org
and repeated the same steps for
8 as well.
Next, install the required php versions again via the following command:
For Mac with ARM
arm brew install email@example.com
For Mac without ARM
brew install firstname.lastname@example.org
Repeat the same steps for any other
php versions you want to install.
Now, restart Valet and with this you are back on track.
Top comments (0)