laravel official site code example
Example 1: laravel
# Via Laravel Installer
composer global require laravel/installer
laravel new blog
# Via Composer Create-Project
composer create-project --prefer-dist laravel/laravel blog
Example 2: laravel
composer create-project --prefer-dist laravel/laravel your-project-name