laravel 5 composer new code example
Example 1: composer create project laravel 7
composer create-project --prefer-dist laravel/laravel:^7.0 blog
Example 2: composer create project laravel with version
composer create-project laravel/laravel=4.1.27 your-project-name --prefer-dist