composer create-project laravel/laravel version code example
Example 1: create laravel 6 project using composer
composer create-project --prefer-dist laravel/laravel blog "6.*"
Example 2: composer create project laravel 7
composer create-project --prefer-dist laravel/laravel:^7.0 blog
Example 3: create laravel project specific version
composer create-project laravel/laravel="5.1.*" appName
Example 4: install laravel on windows
composer global require "laravel/installer=~1.1"