Search code examples
laravellaravel-4

laravel is not recognized as an internal or external command


I'm trying to start laravel,

Found the following line in their tutorial:

Make sure to place the ~/.composer/vendor/bin directory in your PATH so the laravel executable is found when you run the laravel command in your terminal.

I don't understand what I should do ?

I added ~/.composer/vendor/bin to my system variables, and then tried using 'laravel new blog' in the command line but got the following message :

laravel is not recognized as an internal or external command

what should I do?


Solution

  • For Windows add

    C:\Users\MyUserName\AppData\Roaming\Composer\vendor\bin 
    

    ... to directory by going to "My Computer" > "Properties" > "Advanced" > "Environment > Variables" > "Path".

    Note: MyUserName is your pc username .

    Restart your PC and it would work