simplepleb / modulemanager-module
用于管理、安装和配置Laravel模块
v1.0.2
2021-05-08 05:15 UTC
Requires
- php: ^7.3.0
- nwidart/laravel-modules: ^8.0
Suggests
- joshbrw/laravel-module-installer: Makes installing and updating modules simple
- simplepleb/article-module: Complete article post and category module
- simplepleb/comment-module: Add comments to site content
- simplepleb/content-module: Manage site content and front-facing pages
- simplepleb/menumaker-module: Build dynamic menus for your front and back end
- simplepleb/tag-module: Add tags and taggables to content
- simplepleb/thememanager-module: Manage themes for front-facing and admin panels
- simplepleb/themes: A library of starter themes for your laravel project
- spatie/laravel-permission: To be able to set access by role and permissions
README
一个用于管理Laravel模块设置、状态等的模块
此包为您提供构建和管理CRUD模块所需的一切。填写构建表单,整个模块将为您构建。点击“构建”后,您将被重定向到新模块的索引页面,并立即能够向新模块添加和编辑项目。
模块设置
无需使用数据库 - 我们创建了一种简单的方法,允许网站管理员修改任何模块的设置。
默认情况下,设置表单将编辑并保存Module\{ModuleName}\Config\config.php
文件。如果您的模块有更复杂的设置要求,请注意ModuleManager的settings()方法。
/** * If the module has its own settings method use it instead */ if (class_exists("\Modules\\".$name."\Http\Controllers\SettingsController")) { $func = "\Modules\\".$name."\Http\Controllers\SettingsController::settings"; return $func(); }
如果模块没有自己的设置方法,ModuleManager默认将显示表单。
如果模块配置文件中的值是数组(),请将它们添加到protected_modules中
仪表板截图
构建截图
此模块管理器充分利用了Nwidart的出色模块包