1. 修改composer全局配置文件
    composer config -g repo.packagist composer https://packagist.phpcomposer.com
  2. 安装larabel项目
    composer create-project --prefer-dist laravel/laravel blog

happy coding!