Remove Laravel Valet

I installed Valet for the first time, and I had some problems listed below:

  • It gives an error message:

Unable to determine the associated PHP.

Even if I have PHP 7.1 installed by php-osx.liip.ch , so it just goes and installs PHP 7.0 with homebrew anyway!

  1. On projects other than laravel, my localhost does not work and it responds:

ERR_EMPTY_RESPONSE

and then Valet itself doesn't work either!

  1. I get an error in Valet domains with the message:

This site could not be reached laravel_from_scratch.devs server DNS address not found.

So, I decided to remove it by running $ valet uninstall , it returns the corresponding answer, but then when I run $ valet , it is all there! How to remove it correctly?

BTW , I posted this problem also on the page

+5
source share
1 answer

I think I will find a solution by playing a little.

It seems that the Valet uninstall does not work as expected. To remove it, first run the composer command to remove the php dependencies:

$ composer global remove laravel/valet

then to remove the dependencies installed with Homebrew, first run

 $ brew list 

so that you know that we are on the same page, then if you see dnsmasq and php70 in case you do not want them, or you have php7 installed in a different approach (for example, me):

 $ brew uninstall dnsmasq 

and

 $ brew uninstall php70 

Then go to your user directory and delete the hidden .valet directory or run the terminal command as follows:

 $ sudo rm -r ~/.valet 
+33
source

Source: https://habr.com/ru/post/1258869/


All Articles