Skip to content

Instantly share code, notes, and snippets.

@tomysmile
Last active December 12, 2015 06:08
Show Gist options
  • Save tomysmile/35446616ed3ed485d3dd to your computer and use it in GitHub Desktop.
Save tomysmile/35446616ed3ed485d3dd to your computer and use it in GitHub Desktop.
Laravel:Install on OSX

Install Composer

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

Make sure you have /usr/local/bin in your PATH.

Install Laravel Globally

$ composer global require "laravel/installer"

Adding PATH to your .bash_profile

$ nano ~/.bash_profile
export PATH="/Users/[your_home]/.composer/vendor/bin:$PATH"

exit your terminal

Create new laravel project

$ laravel new blog

Runs your project

$ cd blog
$ php artisan serve --host 0.0.0.0 --port 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment