Created
March 18, 2022 17:54
-
-
Save saade/438a41c40f91e779d2feea06b73f7462 to your computer and use it in GitHub Desktop.
Switch php versions in Laravel Valet
This file contains hidden or 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
phpv() { | |
valet stop | |
brew unlink [email protected] [email protected] | |
brew link --force --overwrite $1 | |
brew services start $1 | |
composer global update | |
rm -f ~/.config/valet/valet.sock | |
valet install | |
} | |
alias php74="phpv [email protected]" | |
alias php81="phpv [email protected]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment