laravel环境搭建
安装Composer
- 安装Composer
- 修改 composer 的全局配置文件
composer config -g repo.packagist composer https://packagist.phpcomposer.com
- 下载项目文件
composer create-project laravel/laravel learnlaravel5 5.2.31
- 启动项目
cd learnlaravel5/public
,php -S 0.0.0.0:1024
- 开启注册登录功能
php artisan make:auth
- 开启mysql服务
sudo /usr/local/mysql/support-files/mysql.server start
以上是 laravel环境搭建 的全部内容, 来源链接: utcz.com/z/509038.html