2. Open the command prompt and navigate to the directory where you want to install Laravel (e.g. If you are using XAMPP you may want to install Laravel in htdocs directory).

3. Type the following command and hit enter.

composer create-project laravel/laravel my_project_foler

Installing Laravel Via Composer Create-Project

Explanation:

In the above command, create-project commandis used to a new create project. In laravel/laravel, first is the vendor name and second is package name, and in this case both are same. my_project_folder is the name of the folder which will be created during the installation process and where all the Laravel files and folders will be stored.