H
H
HellWalk2018-07-02 10:39:18
Composer
HellWalk, 2018-07-02 10:39:18

How to install Laravel in root directory?

From the official documentation:

composer create-project --prefer-dist laravel/laravel blog

From laravel.su documentation:
composer create-project --prefer-dist laravel/laravel blog "5.4.*"

From laravel.ru documentation:
composer create-project --prefer-dist laravel/laravel blog "5.3.*"

Everywhere, for some reason, an example of placing laravel in an additional blog folder is indicated. What if I want to install to the root of the current directory?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gleb Starkov, 2018-07-02
@HellWalk

composer create-project --prefer-dist laravel/laravel .

Only the directory must be empty

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question