diff --git a/cli/Valet/Valet.php b/cli/Valet/Valet.php index b2ee789cf..98bd8d4a5 100644 --- a/cli/Valet/Valet.php +++ b/cli/Valet/Valet.php @@ -8,7 +8,7 @@ class Valet { var $cli, $files; - var $valetBin = '/usr/local/bin/valet'; + var $valetBin = BREW_PREFIX.'/bin/valet'; /** * Create a new Valet instance. @@ -88,7 +88,7 @@ function createSudoersEntry() { $this->files->ensureDirExists('/etc/sudoers.d'); - $this->files->put('/etc/sudoers.d/valet', 'Cmnd_Alias VALET = /usr/local/bin/valet * + $this->files->put('/etc/sudoers.d/valet', 'Cmnd_Alias VALET = '.BREW_PREFIX.'/bin/valet * %admin ALL=(root) NOPASSWD:SETENV: VALET'.PHP_EOL); } diff --git a/cli/valet.php b/cli/valet.php index 21ed38914..6e59bc69c 100755 --- a/cli/valet.php +++ b/cli/valet.php @@ -372,7 +372,7 @@ Thus, you may need to delete things from your ~/.composer/composer.json file before running composer global update successfully. Then to finish removing any Composer fragments of Valet: Run composer global remove laravel/valet -and then rm /usr/local/bin/valet to remove the Valet bin link if it still exists. +and then rm ".BREW_PREFIX."/bin/valet to remove the Valet bin link if it still exists. Optional: - brew list --formula will show any other Homebrew services installed, in case you want to make changes to those as well. - brew doctor can indicate if there might be any broken things left behind.