winex01/backpack-permission-manager
Composer 安装命令:
composer require winex01/backpack-permission-manager
包简介
Group roles and permission field view of checklist in create of laravel backpack permission manager add-on
README 文档
README
This package override the Backpack PermissionManager and display the checklist field role and permissions into groups. Check the laravel permission manager package on how to setup.
Screenshots
Installation
Via Composer
composer require winex01/backpack-permission-manager
dont forget to make guard null
//config/backpack/base.php // The guard that protects the Backpack admin panel. // If null, the config.auth.defaults.guard value will be used. // 'guard' => 'backpack', 'guard' => null
seeder
php artisan vendor:publish --provider="Winex01\BackpackPermissionManager\BackpackPermissionManagerServiceProvider" --tag="seeders"
run the seeder
php artisan db:seed --class=RolesAndPermissionsSeeder
Usage
how does it worked, im using the role_permission convention
'admin' => [
'admin_view',
'admin_trashed_filter',
'admin_debugbar',
'admin_web_tinker',
'admin_notify_newly_registered',
'admin_notify_newly_created_manga',
'admin_proxy_notice',
'admin_telescope',
'admin_widgets',
'admin_received_contact_us',
'admin_reply_contact_us',
]
'audit_trails' => [
'audit_trails_list',
'audit_trails_show',
'audit_trails_delete',
'audit_trails_bulk_delete',
'audit_trails_export',
'audit_trails_restore_revise',
'audit_trails_bulk_restore_revise',
]
Restrict user without permissions:
//EntityCrudController.php use Winex01\BackpackPermissionManager\Http\Controllers\Traits\UserPermissions; public function setup() { // some code here... // Option 1: $this->userPermissions('user'); // it will check all permission that starts with user_ (i recommend to use prefix such as: user_list, user_create and etc..) // Option 2: $this->userPermissions(); // if you follow roleName_permissionName and use the table's name as your roleName then you can leave it empty. // Option 3: // calling $this->userPermissions method is equivalent: $this->crud->denyAllAccess(); // if you want to use the checkAccess method dont forget to call denyAllAccess method first $this->checkAccess('users'); $this->checkAccess('admin'); }
Uninstall this package.
composer remove winex01/backpack-permission-manager
Change log
Changes are documented here on Github. Please see the Releases tab.
Testing
composer test
Contributing
Please see contributing.md for a todolist and howtos.
Security
If you discover any security related issues, please email winnie131212592@gmail.com instead of using the issue tracker.
Credits
License
This project was released under MIT, so you can install it on top of any Backpack & Laravel project. Please see the license file for more information.
However, please note that you do need Backpack installed, so you need to also abide by its YUMMY License. That means in production you'll need a Backpack license code. You can get a free one for non-commercial use (or a paid one for commercial use) on backpackforlaravel.com.
winex01/backpack-permission-manager 适用场景与选型建议
winex01/backpack-permission-manager 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 50 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 08 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「backpack」 「Backpack for Laravel」 「Backpack Addon」 「Backpack Permission Manager」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 winex01/backpack-permission-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 winex01/backpack-permission-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 winex01/backpack-permission-manager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Extended summernote fields for laravel backpack
Yii2 panel widget
A Laravel package to handle GitHub webhooks seamlessly by dispatching Laravel events for all GitHub events. Users can listen to and handle these events easily.
Use a translation namespace vor mutliple translation files.
The query builder for WordPress
Ready to use Documents Backpack CRUD with API route for eg. privacy statement, imprint, sbt or gtc
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 25
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-01