Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstall Laravel Valet

Tags:

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

  1. It throws an error saying:

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!

  1. In the non-laravel projects my localhost does not work and it responds:

ERR_EMPTY_RESPONSE

and then Valet itself does not work either!

  1. I'm getting an error on Valet domains with message:

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.

like image 504
Sina Avatar asked Oct 27 '16 05:10

Sina


People also ask

How do I uninstall valet on Mac?

You can uninstall the valet by removing the. vendor directory and the valet binary found in /usr/local/bin/valet. It will permanently remove Valet from your Mac.

How can I tell if Laravel valet is installed?

Once Valet is installed, try pinging any *. test domain on your terminal using a command such as ping foobar. test . If Valet is installed correctly you should see this domain responding on 127.0.

Is Laravel valet for Windows?

Valet is a Laravel development environment for Windows.


2 Answers

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
like image 122
Sina Avatar answered Sep 19 '22 15:09

Sina


An official response here: https://github.com/laravel/valet/issues/341#issuecomment-287048987

valet uninstall
sudo brew services stop nginx
sudo brew services stop php70
sudo brew services stop dnsmasq
brew uninstall nginx
brew uninstall php70
brew uninstall dnsmasq
rm -rf ~/.valet
rm /usr/local/bin/valet
like image 24
Torkil Johnsen Avatar answered Sep 17 '22 15:09

Torkil Johnsen