Setting Up Laravel on MacOS
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)"
Install PHP 7.1
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
And restart terminal or issue this command:
Valet is very useful for setting up dev environment.
composer global require laravel/valet
Create Projects Directory
Now create a projects directory and let Valet know it should server from that directory.
Test your setup
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.Published on
Previous post: The E-Myth Revisited by Michael E. Gerber
Next post: Upgrading to PHP 7.0 on Ubuntu 14