Pankaj
Pankaj

Reputation: 10115

Issue while creating the Project in Laravel

I am writing the below command in Command prompt and things works

c:\xampp\htdocs>composer create-project laravel/laravel

When I type below command..I am not able to create the project..Because I want this created in a directly with some suitable Name

c:\xampp\htdocs>composer create-project laravel/Sampleproject

Am I missing something ?

Upvotes: 0

Views: 39

Answers (2)

Manan
Manan

Reputation: 999

The first argument you pass to the composer's create-project command is the project you want to use. The second parameter that you pass is the path (relative or absolute) to the directory you want the project in.

So, you got to be running this :

composer create-project laravel/laravel C:\xampp\whatever\whatever

Upvotes: 1

pespantelis
pespantelis

Reputation: 15382

You should execute the below command,

composer create-project laravel/laravel Sampleproject

laravel/laravel describes the package name

Upvotes: 4

Related Questions