/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install php
brew install composer
brew install mysql
brew install [email protected]
brew --prefix [email protected] #it'll return => /usr/local/opt/[email protected]
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
brew services start php
brew services start mysql
mysql_secure_installation #sudo mysql_secure_installation
brew services restart mysql
# Run MySQL
mysql -u root -p
brew install phpmyadmin
brew services list
composer global require laravel/valet
valet install
cd ~/Sites
valet park
valet link /path/to/project
valet secure /path/to/project
valet unsecure /path/to/project
==========> Switch PHP Version:s <=============
valet use [email protected]
brew unlink php
brew link --overwrite --force [email protected]
valet uninstall
composer global remove laravel/valet
brew uninstall --force [email protected]
brew uninstall --force php nginx dnsmasq
brew upgrade
brew install php
composer global require laravel/valet
valet install
brew upgrade
brew cleanup
valet restart