Last active
September 7, 2021 15:48
-
-
Save trevorgreenleaf/826ec7a0bd6b2c8de88de27ecbfa7487 to your computer and use it in GitHub Desktop.
Laravel Valet on Multiple User Accounts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /usr/local/Homebrew/ | |
sudo rm -rf /usr/local/var/homebrew/ | |
sudo rm -rf /usr/local/Cellar/php71/ | |
sudo rm -rf /usr/local/include/php/ | |
sudo rm -rf ~/.valet | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install homebrew/php/php71 | |
composer global require laravel/valet | |
brew link --overwrite php71 | |
valet install | |
#Then just go to directory and run valet park | |
Thanks for putting this out there. I need to setup valet for 2 separate accounts on a single user. What does this gist do more than reinstall what you just deleted? And how does this make a multiple user setup work? Is it the brew link --overwrite
that does the trick? Thanks for your time.
What @edward-rw asks. I had exact same question.
I have a main administrator account, and then a "normal" user account where I do my work. I am really interesting in how we can install valet.
It could also be relevant to specify from which user account above gist should be run, although I am assuming it's the main admin account, given your use of sudo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you need to fix the
In Brew.php line 192: Unable to determine linked PHP.
brew unlink php && brew link php
brew services restart --all
composer global update
valet start