Installing Laravel installer globally on Mac

David Carr

Laravel Framework

Laravel comes with a handy command line installer, once installed can be ran anywhere from terminal to install a new Laravel application. In this post I’ll be covering the steps involved to get the installer installed and the PATH configured correctly.

First of all install the installer using composer:

composer global require "laravel/installer"

The official docs say:

Make sure to place the ~/.composer/vendor/bin directory (or the equivalent directory for your OS) in your PATH so the laravel executable can be located by your system.Some people 

To do this open your bash profile in nano:

nano ~/.bash_profile

Next set the PATH location.

export PATH="~/.composer/vendor/bin:$PATH"

Exit nano by pressing CTRL + x restart terminal.

Now the installer can be used anywhere by calling Laravel new folloed by the project you can to create such as Blog:

Laravel new Blog

 

Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!

Sponsor

My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.