Laravel Installer on Windows: Setting your Environment PATH Variable

Seriously? Can people please stop ignoring the fact that Windows users also use Frameworks and APIs and whatever else’s when you’re writing your documentation!

You wouldn’t build a website that only works on Mac would you?! So stop acting like people don’t use Windows to do their job also!

Anyways, here’s how to install the Laravel installer for Laravel 5…on a Windows (if you’re own a Mac…go read the actual instructions which were made only for you).

NOTE: The following is for Windows 8 but should work on Windows 7 also.

    1. Run composer global require "laravel/installer=~1.1" from the commandline.
    2. Open you Environment Variables…

      Method 1 (easy way)

      1. Search “env”
      2. Go to “Edit environment variables for your system”
      3. Under “System Variables” select to “Path” and click “Edit…”
      4. Add ;C:\Users\YOUR_USERNAME_HERE\AppData\Roaming\Composer\vendor\binto the end.
        IMPORTANT: There must be a semicolon before it, and no slash or semicolon after it

      Method 2 (The fun way)

      1. Go to Control Panel > System and Security > System > Advanced System Settings
      2. Go to the Advanced tab
      3. Click “Environment Variables…”
      4. Under “System Variables” select to “Path” and click “Edit…”
      5. Add ;C:\Users\YOUR_USERNAME_HERE\AppData\Roaming\Composer\vendor\binto the end.
        IMPORTANT: There must be a semicolon before it, and no slash or semicolon after it

Don’t forget to run composer self-update and then close the current cmd and start a new one. This is because the current cmd window won’t pick up the changes to the path, so you have to close it and start a new one.

Enjoy!

P.S. In fairness for years Mac users had to put up with the same thing so I know it’s karma, but still…us Windows users have it tough already…we’re using Windows :(