laravel go to install code example
Example 1: insall laravel
composer global require laravel/installer
laravel new blog
Example 2: laravel documentation
composer create-project --prefer-dist laravel/laravel blog
composer global require laravel/installer
laravel new blog
composer create-project --prefer-dist laravel/laravel blog