

Laravel Valet install on mac
source link: https://gist.github.com/bradtraversy/b58f74cd863a465068eaeaae1544d9be
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Laravel Valet Setup (Mac)
This will get you setup with Laravel & Valet on your Mac. Quentin Watt has a good video tutorial on getting setup here as well
Install Homebrew
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 update
Install PHP
brew install php
Install composer (PHP Dependency Manager)
brew install composer
Put Composer in your $PATH
Run the following and see if it says "composer" anywhere
echo $PATH
If 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 ~/.zshrc
Add this line and save
export 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 $PATH
Install Valet with Composer
composer global require laravel/valet
Run valet install
valet install
Install Laravel Installer
composer global require laravel/installer
Create a Laravel Project
Make sure you go to where you want to create your project folder
laravel new PROJECT_NAME
Tell Valet to use the current folder for Laravel projects
valet park
Open your project
Go to your browser and type http://PROJECT_FOLDER.test
To see all parked projects
valet parked
To rename your TLD from .test to something else, such as .dev
valet tld dev
Recommend
-
170
Introduction Valet Linux is a Laravel development environment for Linux minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels. Yeah, we like it too. V...
-
61
Introduction Valet is a Laravel development environment for Mac minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels. Yeah, we like it too. Laravel Valet conf...
-
9
Setup MailHog with Laravel Valet Testing emails can be a pain. Luckily, there are plenty of tools out there that can make the process a lot easier. Let me show you how to setup MailHog, a local development tool for testing em...
-
10
Crew Dragon’s Short Hop Begins The Era Of Valet Parking At The ISS They weren’t scheduled to return to Earth until April 28th at the earliest, so why did NASA astronauts Michael Hopkins, Victor Glover...
-
2
SRE落地:用VALET模式统一语言由 持续交付2.0 | 2020-12-18本文源自《SRE工作手册》英文版第三章,讲述的是家得宝(THD)公司在SRE转型中如何使用VALET。VALET...
-
7
June 4th, 2015 | 3 minute readValet: A Better Place to Put Your KeysStore your secrets securely without ever reading Apple’s SecItem.h
-
8
-
10
Laravel Valet 3 Released With Multi-Version PHP Support News March 30th, 2022 The Laravel team released the ne...
-
5
Introducti...
-
3
BMW demonstrated its remote valet parking technology at CES Could Uber become a work-from-home job? By
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK