1. Open Git bash or cmd
2. Type the commands
pwd - print working directory
cd c:
cd xampp/htdocs
(if you want to type clear the terminal type: 'clear')
composer create-project --prefer-dist laravel/laravel yourprojectname "5.2.*"
-or-
composer create-project laravel/laravel codehacking "5.2.*" --prefer-dist
mycase:
composer create-project laravel/laravel cms "5.2.*"
(Normally auto-install if got any error :
When if you got an error, try and do it.
composer install --no-scripts
-then-
composer install
)
- so my project name is cms.
- I've used the laravel version 5.2. If you like to use the latest version, you can mention the version of laravel.
- Project location:
C:\xampp\htdocs\cms
if laravel project successfullt installed, you got a message:
'Application key set successfully.'
ok done.
-----------------------------------
Project folder: (cms)
'vendor' folder:
if you go to a vendor you cansee all it's dependecies is going to be installing everything here that needs.
No comments:
Post a Comment