laravel-enso/rolemanager 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

laravel-enso/rolemanager

最新稳定版本:5.6.8

Composer 安装命令:

composer require laravel-enso/rolemanager

包简介

Role management for Laravel Enso

README 文档

README

License Stable Downloads PHP Issues Merge Requests

Description

Roles manages role records and role-to-permission assignment in Laravel Enso.

The package exposes CRUD and table APIs for roles, companion endpoints for reading and writing role permissions, and a sync command used to propagate role configuration between environments.

It is intended for Enso applications that use permission-based route access and need roles managed from the backoffice instead of hard-coded seeds alone.

Installation

Install the package:

composer require laravel-enso/roles

Run the package migrations:

php artisan migrate

Optional publishes:

php artisan vendor:publish --tag=roles-config
php artisan vendor:publish --tag=roles-factory
php artisan vendor:publish --tag=roles-seeder

Features

  • Role CRUD, options, table init, table data, and Excel export endpoints.
  • Permission assignment endpoints for reading, setting, and writing role permissions.
  • Config publishing for role restrictions and group visibility.
  • Default role seeding for admin, supervisor, and application.
  • enso:roles:sync command for syncing local role definitions from config/local/roles.

Usage

Main route groups:

  • system.roles.*
  • system.roles.permissions.*

Permission assignment flow:

  • read current role permissions through permissions.get
  • submit updates through permissions.set
  • persist config files through permissions.write

Environment sync:

php artisan enso:roles:sync

The command only runs when the local config/local/roles directory exists.

Default seeded roles:

  • admin
  • supervisor
  • application

API

HTTP routes

  • GET api/system/roles/create
  • POST api/system/roles
  • GET api/system/roles/{role}/edit
  • PATCH api/system/roles/{role}
  • DELETE api/system/roles/{role}
  • GET api/system/roles/initTable
  • GET api/system/roles/tableData
  • GET api/system/roles/exportExcel
  • GET api/system/roles/options
  • GET api/system/roles/permissions/get/{role}
  • POST api/system/roles/permissions/set/{role}
  • POST api/system/roles/permissions/write/{role}

Artisan commands

  • enso:roles:sync

Depends On

Required Enso packages:

Companion frontend package:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

laravel-enso/rolemanager 适用场景与选型建议

laravel-enso/rolemanager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 14.82k 次下载、GitHub Stars 达 10, 最近一次更新时间为 2017 年 06 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「roles」 「laravel-enso」 「role-manager」 「laravel-roles」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 laravel-enso/rolemanager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 laravel-enso/rolemanager 我们能提供哪些服务?
定制开发 / 二次开发

基于 laravel-enso/rolemanager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 14.82k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 8
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 4
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-19