# knife **Repository Path**: dhhb/knife ## Basic Information - **Project Name**: knife - **Description**: 刀客网后台 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-12-29 - **Last Updated**: 2024-06-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 刀客网线下软件开发学习系统 =============== ### 技术架构: - 运行环境:linux + nginx + PHP7.3 - 技术栈:ThinkPHP 6.0 + vue ### 开发参考 # git相关 - 项目克隆: git clone https://gitee.com/dhhb/knife.git - 版本更新: git pull origin master - 本地库添加: git add . - 版本提交: git commit -m '提交说明必填' - 本地仓库同步线上仓库: git push origin master # 数据库迁移相关 ## 安装 ``` composer require topthink/think-migration ``` ## 创建迁移文件 ``` php think migrate:create AnyClassNameYouWant ``` ## 执行迁移 ``` php think migrate:run php think migrate:rollback ``` ## 数据填充器 ``` php think seed:create StudentTableSeeder php think seed:create TeacherTableSeeder ``` 执行数据填充 ``` php think seed:run ``` # 创建应用 ``` php think build api ``` ## 定义是否 携带访问令牌, 是否进行做签名认证 ``` php think make:middleware CheckUserToken php think make:middleware CheckClientSign ```