install laravel 5.6 code example
Example 1: install laravel 5.8
composer create-project --prefer-dist laravel/laravel blog "5.8.*"
Example 2: install laravel 7
composer create-project --prefer-dist laravel/laravel:^7.0 Your project name
Example 3: insall laravel
composer global require laravel/installer
laravel new blog
Example 4: laravel 4 installer
composer global require "laravel/installer=~4.0"