云南超级宝妈

root 3474705bf2 202115修复 hace 4 años
app 3474705bf2 202115修复 hace 4 años
bootstrap 5f77a3797d storage hace 4 años
config a038750726 合并代码 hace 4 años
database 66999e5ade Code merge hace 4 años
public a038750726 合并代码 hace 4 años
resources 19f55e81b3 排班类型修改 hace 4 años
routes ebf8c20121 A hace 4 años
storage a038750726 合并代码 hace 4 años
tests b255b584a2 tests hace 4 años
vendor 94eefae904 vendor hace 4 años
.editorconfig dcb4e6b292 public hace 4 años
.env dcb4e6b292 public hace 4 años
.env.example dcb4e6b292 public hace 4 años
.gitattributes dcb4e6b292 public hace 4 años
.gitignore a038750726 合并代码 hace 4 años
.htaccess dcb4e6b292 public hace 4 años
.styleci.yml dcb4e6b292 public hace 4 años
1.txt af1ce0c96b 1 hace 4 años
README.md dcb4e6b292 public hace 4 años
_ide_helper.php dcb4e6b292 public hace 4 años
artisan dcb4e6b292 public hace 4 años
composer.json a038750726 合并代码 hace 4 años
composer.lock a038750726 合并代码 hace 4 años
nginx.htaccess dcb4e6b292 public hace 4 años
package.json dcb4e6b292 public hace 4 años
phpunit.xml dcb4e6b292 public hace 4 años
server.php dcb4e6b292 public hace 4 años
webpack.mix.js dcb4e6b292 public hace 4 años

README.md

安装

  • git clone 到本地
  • 执行 composer install 创建好数据库
  • 配置 .env 中数据库连接信息,没有.env请复制.env.example命名为.env
  • 执行 php artisan key:generate
  • 执行 php artisan migrate
  • 执行 php artisan db:seed
  • 执行 php artisan passport:install
  • storage下所有目录 和 bootstrap/cache 目录应该是可写的
  • 键入 '域名/admin/auth/login'(后台登录)
  • 用户名:admin;密码:admin

  • 生成文档 php artisan l5-swagger:generate

  • api文档在api/documentation里面, 也可以看上面的 在线api文档

  • api文档接口调试授权生成器请在config/l5-swagger.php配置

cron计划任务自动监听

linux执行: crontab -e

 <!-- 添加一条新的记录 -->
 * * * * * /php目录/bin/php /项目目录/artisan cron:run > /dev/null 2>&1

微信接口已经集成(不用这个就需要自己编写)

  • overtrue/laravel-wechat:~5.0 需要在config/wechat.php下配置相关信息
  • overtrue/wechat(目前使用)

    passport 8.0

    获取client ID 和 秘钥(用于swagger接口调试申请token)

    php artisan passport:client --password

USEFUL LINK