Windows下Laravel环境搭建
升级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
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/02/19/windows-laravel-environment-establish/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报
Windows下Laravel环境搭建
升级Composer
C:\Users\yezhou>composer self-update
You are already using composer version 1.2.1 (stable channel).
升级Laravel安装器
C:\Users\yezh……
文章目录
关闭
共有 0 条评论