Reputation: 8326
I am just getting started both with Composer and Laravel.
I used Composer to include the Laravel installer:
"require": {
"laravel/installer": "v1.3.5"
}
When I ran the Laravel installer, it created a subdirectory with the name specified in the command: laravel new name
. My project now has a composer.json
file in both the root folder and the Laravel installation sub-folder.
Is this what's supposed to happen? It seems to me that I should only have one composer.json
per project.
Upvotes: 0
Views: 426
Reputation: 4674
The best way to create a Laravel project using composer as describes below:: (on windows)
C:\xampp\htdocs\laravel_5_4
"Alt+d
then you will see directy URL will be highlighted, then type "cmd
" and press Enter
and command promt should appear.composer create-project laravel/laravel ./ "5.4.*" --prefer-dist
" and press Enter.Sit back and relax, you are done.
Note: You can change the version as you want.
Upvotes: 1