Download the PHP package jobsys/starter-module without Composer
On this page you can find all versions of the php package jobsys/starter-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package starter-module
Starter 基本模块 (Required)
该模块主要是提供系统的基本功能,包括基础用户认证登录、日志管理、字典管理、消息通知管理等。
模块安装
配置
模块配置
模块功能
用户认证登录
用户认证登录
功能流程:用户登录
=> 选择角色
(如果只有一个角色自动选定) => 初始化权限信息
=> 跳转到Dashboard
。
开发规范
- 可以根据业务需求自定义登录页面,默认登录页面的路由为
/login
。 - 默认的登录界面为
Modules/Starter/Resources/views/web/NudePageLogin.vue
,登录用户名由config/conf.php
中的login_field
定制,可以根据业务需求进行修改。
字典管理
字典管理功能提供了对系统中常用的字典进行管理,如:性别、状态、类型等,根据不同的系统功能进行初始化。
开发规范
- 字典管理的数据表为
dictionaries
,数据模型为Modules\Starter\Entities\Dictionary
。 -
在
database/seeders/DictionariesSeeder.php
的run
方法中定义字典的初始化数据。 - 使用命令同步 Seeder
日志管理
日志管理功能提供了对系统中的操作日志进行记录,包括:操作人、操作时间、操作内容、操作结果等。
开发规范
- 日志管理的数据表为
access_logs
,数据模型为Modules\Starter\Entities\AccessLog
。 - 在业务逻辑中使用辅助函数
log_access
记录日志,如:
消息通知管理
消息通知管理功能集成了消息通知的获取、查看、标记已读等功能。API
由 Modules\Starter\Http\Controllers\NotificationController
提供,
前端页面由 Modules\Starter\Resources\views\web\components\NotificationBox.vue
组件提供。
开发规范
- 消息通知管理的数据表为
notifications
,详细的功能可以参考 Laravel Notifications。 - 在页面中使用
NotificationBox
组件,如:
模块代码
数据表
数据模型/Scope
枚举
辅助函数
基础
-
starter_setup_user
starter_get_user_menu
字典
dict_get
日志
log_access
Controller
UI
PC 端页面
PC 组件
All versions of starter-module with dependencies
PHP Build Version
Package Version
No informations.
The package jobsys/starter-module contains the following files
Loading the files please wait ....