- Laravel 5.8
- nginx
- postgreSql 或 Mysql
- laravel-mix
- Redis
- PHP APC
- Vue
- Vuex
- Vue-router
- Element UI
模板采用:Element-Admin
$ git clone [email protected]:tuo0/laravel-admin.git
$ cd laravel-admin
$ composer install
$ npm install
$ php artisan queue:work redis
# 安装
$ npm install -g laravel-echo-server
# 配置
$ laravel-echo-server init
# 启动
$ laravel-echo-server start
$ php artisan queue:listen --tries=1
$ php artisan key:generate
$ npm run prod
[
'code' => 1,
'msg' => '',
'data' => [],
]
- code:错误码 1:成功 0:失败 <0:失败错误码
- msg:错误消息
- data:返回数据