This will get you setup with Laravel & Valet on your Mac. Quentin Watt has a good video tutorial on getting setup here as well
Go to https://brew.sh/ and copy the command and run in your terminal
It will be something like this...
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Then update
brew updatebrew install phpbrew install composerRun the following and see if it says "composer" anywhere
echo $PATHIf not, you have to add it to your path
Open your .zshrc (This command will open it with VS Code but you can open with any text editor)
code ~/.zshrcexport PATH=$PATH:$HOME/.composer/vendor/bin-
NOTE: If you are using bash instead of zsh, you need to edit ~/bashrc instead of ~/zshrc
-
Restart your terminal and run this again and you should see "composer"
echo $PATHcomposer global require laravel/valetvalet installcomposer global require laravel/installercd path/to/park/valet #cd ~/Sites ##main is: cd /, cd Volumes/Disk\ E/Sites/
valet parkGo to your browser and type http://PROJECT_FOLDER.test
valet parkedvalet tld devbrew install mysqlbrew 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 ~/.zshrcbrew services start php
brew services start mysqlmysql_secure_installation #sudo mysql_secure_installation
brew services restart mysql
# Run MySQL
mysql -u root -pbrew install phpmyadmin