Installing Laravel Valet

1. Open a new Terminal window.

2. Enter the following command into the Terminal window and hit return.

composer global require laravel/valet

3. Enter the following command into the Terminal window and hit return.

valet install

NOTE

As of December 30, 2021, there is a bug in Valet that causes a deprecated warning to be printed out after any valet command. It can be ignored.

Deprecated: Method ReflectionParameter::getClass() is deprecated in /Users/meisenbraun/.composer/vendor/illuminate/container/Container.php on line 788

Deprecated: Method ReflectionParameter::getClass() is deprecated in /Users/meisenbraun/.composer/vendor/illuminate/container/Container.php on line 862

You may be asked for your computer's password.

NOTE

The cursor will not move or change as you type the password. If you mistype, hit return and try again.

5. Enter the following command into the Terminal window and hit return.

valet trust

You will be asked for your computer's password.

NOTE

The cursor will not move or change as you type the password. If you mistype, hit return and try again.

4. Enter the following commands into the Terminal window and hit return.

mkdir ~/Sites
cd ~/Sites

5. Enter the following command into the Terminal window and hit return.

valet park

6. Close the Terminal window