Create new laravel project in current directory
To create a new Laravel project in the current directory, you can use the following command:
composer create-project --prefer-dist laravel/laravel.
This command tells Composer to create a new Laravel project in the current directory (.
) using the laravel/laravel
package.
Note: Make sure you have Composer installed on your system and that you are in the correct directory where you want to create the new project.
Also, you can use the following command to create a new Laravel project with a specific version:
composer create-project --prefer-dist laravel/laravel:8.0.
Replace 8.0
with the desired version of Laravel.
After running the command, Composer will download the required files and install the project. This may take a few minutes, depending on your internet connection and the size of the project.
Once the installation is complete, you can navigate to the project directory and start working on your new Laravel project!