After 3 years, I am using Laravel again at work. Laravel has extensive documentation but sometimes it can be a bit verbose. Here are command to get you started as soon as possible. This assumes pretty much fresh install of MacOS.
Check the official site for latest command
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install homebrew/php/php7
brew install mariadb
Set MariaDB to start as service at the end of installation.
Get Composer fromĀ https://getcomposer.org/download/ and make sure to install it globally for easier use.
composer global require "laravel/installer"
Add following line to .bash_profile in home directory
export PATH="$HOME/.composer/vendor/bin:$PATH"
And restart terminal or issue this command:
source ~/.bash_profile
Valet is very useful for setting up dev environment.
composer global require laravel/valet
valet install
Now create a projects directory and let Valet know it should server from that directory.
mkdir ~/sites
cd ~/sites
valet park
Now in sites directory, create a new laravel project:
laravel new blog
and load http://blog.dev
If everything went smoothly, you should see a fresh Laravel project.