This assumes that you have never run Laravel on your machine. If you're on Windows, stop reading this and install Homestead - it provisions a virtual machine with all of the necessary software installed.
- Install homebrew - https://brew.sh/
- Install composer - https://getcomposer.org/download/
- Make sure you can open a terminal and run
composer
. If not, make sure it's linked to your path. If you don't know what that means, follow the next step and ask me for help! brew install tmate
so I can ssh into your laptop occasionally to debug and help- Install php -
brew install php
- Use a specific version of php (if necessary) - e.g. php 7.4 -
valet use php@7.4
- Install valet -
composer global require laravel/valet
- Set up valet:
valet install