laravel new project
snippet in php

create laravel 6 project using composer

user2021

composer create-project --prefer-dist laravel/laravel blog "6.*"

insall laravel

user775

composer global require laravel/installer 
laravel new blog

create project command in laravel

user8976

Before starting this hope you installed composer dependancy manager for PHP.
----------------------------------------------------------------------------- 
So if you want to create a project by name of 'first_laravel_app' in directory C:/xampp/htdocs/ then what you need to do is

Locate your project parent directory using cmd
>cd c:/xampp/htdocs

and fire this command 
>composer create-project laravel/laravel first_laravel_app --prefer-dist

And its done, this is really easy and it also creates Application Key automatically for you.
  
# I hope it will help you.
# Namaste 

laravel new project

user2814

laravel new blog

laravel new project

user1561

composer create-project --prefer-dist laravel/laravel:^7.0 blog

laravel new

user5652

composer global require laravel/installer