create project using composer code example
Example 1: upgrade composer version
composer self-update
Example 2: how to create the new laravel project
composer create-project --prefer-dist laravel/laravel blog
composer self-update
composer create-project --prefer-dist laravel/laravel blog