Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dzim's avatar
Level 2

Use laravel new with no folder

Hi,

I already setup my VPS that comes with cpanel with a new subdomain, example sub.abcde.com

Then i install composer, and also laravel installer like whats being told here: http://laravel.com/docs/4.2/quick

Now i can create new laravel project easily just by laravel new appname which will create folder appname in my subdomain

How can i create a new laravel project but not involving new folder creation? So when i open sub.abcde.com i will see the default laravel welcome page rather than sub.abcde.com/appname?

0 likes
5 replies
intrepidws's avatar

I'm wondering this as well - did you ever find an answer?

WayneLuke's avatar

Since you already have a directory and you have composer installed use the composer command on that page. For project name use ./

composer create-project laravel/laravel ./
4 likes
luceos's avatar

or even shorter than @WayneLuke

composer create-project laravel/laravel .

Please note your target directory should be empty. Even a .git directory (a consequence of running git init) will stop the installation from composer.

2 likes
constb's avatar

@dzulhelmi don't forget that web server root is not project's root directory, but project's public directory.

Please or to participate in this conversation.