安装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
来源:oschina
链接:https://my.oschina.net/u/2861166/blog/811563