How to create a Laravel project in the current directory
Last update: 04-23-2024
Creating a new Laravel project in a new subfolder:
composer create-project laravel/laravel new-subfolder-name
Creating a new Laravel project in the current folder:
composer create-project laravel/laravel .
- The dot at the end specifies that Laravel should be installed in the current directory
-
The folder has to be empty! Otherwise Composer will return the error:
Project directory "/your-dir-name" is not empty