First, download homebrew
If you download the domestic slow, then:
First, access to install the file, the official website of the script to win
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install
Second, resource links to change the script
to replace the mirror here to Tsinghua University, two amended as follows:
BREW_REPO = “https://github.com/Homebrew/brew“.freeze
CORE_TAP_REPO = “https://github.com/Homebrew/homebrew-core“.freeze
Change these two
BREW_REPO = "https://mirrors.ustc.edu.cn/brew.git".freeze
CORE_TAP_REPO = "https://mirrors.ustc.edu.cn/homebrew-core.git".freeze
It can be replaced by other stores.
Third, run the script
/usr/bin/ruby brew_install
Then successfully downloaded homebrew
Php and then use the brew to download MySQL
brew install php71
brew install MySQL
Start the installation valet:
composer global require laravel / valet
first composer to join the environment variables, configuration completed skip.
valet install the install valet relies related
the valet will be installed (note that installation of the message, the default mapping of some domain name suffixes are .dev some .test)
~ cd
mkdir sites
cd sites
perform valet park # Set the project directory
Finally, create a laravel project
laravel new blog # command file will be created blog sites in the directory laravel the project.