升级Composer
C:\Users\yezhou>composer self-update
You are already using composer version 1.2.1 (stable channel).
升级Laravel安装器
C:\Users\yezhou>composer global update laravel/installer
Changed current directory to C:/Users/yezhou/AppData/Roaming/Composer
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing laravel/installer (v1.3.1)
- Installing laravel/installer (v1.3.4)
Downloading: 100%
Writing lock file
Generating autoload files
查看Laravel安装器版本号
C:\Users\yezhou>laravel --version
Laravel Installer version 1.3.3
创建Laravel项目
C:\Server\www>laravel new MyProject
创建指定版本Laravel项目
C:\Server\www>laravel new MyProject --5.2
或者使用composer的create-project安装
C:\Server\www>composer create-project laravel/laravel MyProject "5.1.*"
查看当前项目Laravel版本号
C:\Server\www\MyProject>php artisan -V
Laravel Framework version 5.3.22