composer install laravel global code example
Example 1: install laravel globally
composer global require laravel/installer
Example 2: install laravel
composer create-project --prefer-dist laravel/laravel blog "6.*"
composer global require laravel/installer
composer create-project --prefer-dist laravel/laravel blog "6.*"