开启一个新的laravel项目

in PHP with 0 comment

1.首先确保系统中已经安装了composer

2.composer create-project --prefer-dist laravel/laravel only -vvv
使用composer的方式来新建laravel项目并下载依赖。

3.安装debugbar
composer require --dev "barryvdh/laravel-debugbar"
生成debugbar配置
php artisan vendor:publish --provider="BarryvdhDebugbarServiceProvider"

4.安装laravel-ide-helper
composer require --dev "barryvdh/laravel-ide-helper"
生成ide帮助文件
php artisan ide-helper:generate
如果使用的PHPstorm ,还可以安装扩展。

5.安装其它常用类库
jwt-auth(注意制定版本) - composer require tymon/jwt-auth:1.0.0
easywechat(微信公众号小程序) - composer require overtrue/wechat:~4.0 -vvv
(php artisan vendor:publish --provider="OvertrueLaravelWeChatServiceProvider")
laravel-model(快速写Model) - composer require widdy/laravel-model
...

Comments are closed.