Laravel can be installed with the Laravel installer or composer. Both installers will place the application into a folder which is named after the application. Sometimes we want to affect that behaviour.
Install Laravel in a custom directory
Let’s install Laravel into the folder
laravel new PROJECT_NAME
composer create-project laravel/laravel PROJECT_NAME
Install Laravel in the current directory
This wil install Laravel into the current folder.
The following solution is suggested to work, but it doesn’t!
composer create-project laravel/laravel .