多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 简单开始创建一个新模块 创建一个新模块: Test #### 1,使用developer开发助手中模块开发助手的新建模块 说明1:该功能需要先安装开发助手(developer)模块,系统安装时会自动安装开发助手,如果未自动安装,进入后台-模块管理,安装开发助手即可,(开发助手只会在本地环境中出现 设置本地环境:系统设置-系统安全-应用环境,选择本地环境 - 保存后生效) 说明2:推荐使用开发助手进行二次开发 #### 2,使用artisan命令 ` php artisan module:create Test` 说明:如果cmd运行命令时“ php不是内部命令……”,请设置环境变量 该命令会自动创建 Test模块相关文件,你可以在modules目录下找到它 ~~~ app/ bootstrap/ vendor/ modules/ ├── Test/ ├── Assets/ ├── Config/ ├── Console/ ├── Database/ ├── Migrations/ ├── Seeders/ ├── Models/ ├── Http/ ├── Controllers/ ├── Middleware/ ├── Requests/ ├── Providers/ ├── TestServiceProvider.php ├── Resources/ ├── lang/ ├── views/ ├── Repositories/ ├── Routes/ ├── admin.php ├── front.php ├── api.php ├── Tests/ ├── composer.json ├── module.json ├── start.php ~~~ 或者通过 `php artisan module:list` 你可以看到test模块出现在模块列表中 ~~~ +-------+---------+-------+----------------------+ | Name | Status | Order | Path | +-------+---------+-------+----------------------+ | Core | Enabled | 0 | D:\cms\modules\Core | | Test | Enabled | 10 | D:\cms\modules\Test | +-------+---------+-------+----------------------+ ~~~