Skip to content

Instantly share code, notes, and snippets.

@saade
Created March 18, 2022 17:54
Show Gist options
  • Save saade/438a41c40f91e779d2feea06b73f7462 to your computer and use it in GitHub Desktop.
Save saade/438a41c40f91e779d2feea06b73f7462 to your computer and use it in GitHub Desktop.
Switch php versions in Laravel Valet
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