I installed Valet for the first time and I had some problems listed below:
Unable to determine linked PHP.
Even though I have PHP 7.1 installed by php-osx.liip.ch so it just goes ahead and installs PHP 7.0 with homebrew anyway!
ERR_EMPTY_RESPONSE
and then Valet itself does not work either!
This site can’t be reached laravel_from_scratch.dev’s server DNS address could not be found.
So I decided to uninstall it by running $ valet uninstall
, it returns the corresponding response but then when I'm running $ valet
it is all there! How to uninstall it correctly?
BTW, I posted this issue also on the Valet GitHub page.
I guess I find the solution after a little bit playing around.
It seems Valet uninstall
command does not work as expected. To uninstall it first run the composer command to uninstall the php dependencies:
$ composer global remove laravel/valet
then to uninstall the dependencies installed with the Homebrew, first run;
$ brew list
just so you know we are in the same page then if you see dnsmasq
and php70
in case you do not want them or you have php7 installed in another approach (like me) run:
$ brew uninstall dnsmasq
and
$ brew uninstall php70
Then go to your user directory and delete the .valet
hidden directory or run the terminal command like so:
$ sudo rm -r ~/.valet