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
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)"
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
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)
Add this line and save
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"
Install Valet with Composer
composer global require laravel/valet
Run 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
Open your project
Go to your browser and type http://PROJECT_FOLDER.test
To see all parked projects
To rename your TLD from .test to something else, such as .dev
valet tld dev
Aggregate valuable and interesting links.
Joyk means Joy of geeK