Skip to content

Instantly share code, notes, and snippets.

View ronssij's full-sized avatar
🏠
Secretly deleting database 👿

CJ Ronxel ronssij

🏠
Secretly deleting database 👿
View GitHub Profile
@altynbek07
altynbek07 / README.md
Last active March 25, 2022 22:42
Switch PHP Version in Laravel Valet

Switch PHP Version in Laravel Valet

For me, the valet use php@7.3 command does not work. And so I created this bash function.

Install

I already have PHP versions 7.2, 7.3 and 7.4 installed via Homebrew. Add this function in your .bash_profile or .zshrc file:

# Switch PHP version
switch-php() {