Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. The PATH for Windows:
  2.  
  3. I’ve found the location where composer stores the Vendor files.
  4.  
  5. So instead of ~/.composer/vendor/bin, on Windows the following path should be used:
  6.  
  7. C:\Users\<COMPUTER NAME>\AppData\Roaming\Composer\vendor\bin
  8.  
  9.  
  10. How to install the Laravel Installer:
  11.  
  12. I assume you have php and composer in your PATH already.
  13.  
  14. First of all install the Laravel Installer. Open a command prompt and enter:
  15.  
  16. composer global require "laravel/installer=~1.1"
  17.  
  18. Then update the PATH environment variable via e.g. command prompt with admin privileges:
  19.  
  20. setx /M path "%path%;%appdata%\Composer\vendor\bin"
  21. %appdata% is added, so you don’t have to worry about adding your computer name.
  22.  
  23.  
  24. How to create a fresh Laravel Installation:
  25.  
  26. Now you should be able to run laravel commands in the command prompt.
  27.  
  28. To create a fresh laravel installation, open a command prompt in the directory of choice and enter:
  29.  
  30. laravel new name_of_directory
  31. If everything went right, you should see the following message:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement