ahmmed/admin-ancillary
Composer 安装命令:
composer require ahmmed/admin-ancillary
包简介
This package will check permission of admin user to control access in admin.
README 文档
README
Ahmmed/AdminAncillary
Laravel Ahmmed/AdminAncillary check the role based permissions to built in Auth System of Laravel 5. AdminAncillary protects routes and even crud controller methods.
Table of Contents
Requirements
Getting Started
Documentation
Contribution Guidelines
Requirements
This package requires PHP >=7.0.0
Getting Started
Installation
composer require ahmmed/admin-ancillary
Publish the package migrations,asset and views to your application
php artisan vendor:publish --provider="Ahmmed\AdminAncillary\AdminAncillaryServiceProvider"
After successful publish, Add the role relationship method and user_role fillable field to your User model.
public function role(){
return $this->hasOne(Role::class,'id','user_role');
}
and also add below lines into DatabaseSeeder file
$this->call(UserTableSeeder::class);
$this->call(MenuTableSeeder::class);
$this->call(RoleTableSeeder::class);
After that run
"php artisan migrate"
and
"php artisan db:seed"
Add the middleware to your app/Http/Kernel.php.
protected $routeMiddleware = [
'check_permission' => 'Ahmmed\AdminAncillary\CheckPermission',
];
If your application have no error view page then add error view page.
Also add DEFAULT_LOGO and DEFAULT_FAVICON in your .env file for upload logo and favicon in app settings
Documentation
Follow along the Wiki to find out more.
Contribution Guidelines
Support follows PSR-2 PHP coding standards, and semantic versioning.
Please report any issue you find in the issues page. Pull requests are welcome.
ahmmed/admin-ancillary 适用场景与选型建议
ahmmed/admin-ancillary 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 44 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 03 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Admin control access permission」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ahmmed/admin-ancillary 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ahmmed/admin-ancillary 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ahmmed/admin-ancillary 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
2lenet/EasyAdminPlusBundle
Provide a way to secure accesses to all routes of an symfony application.
Analysis module for finding problematical shop data.
Yii2 prettyPhoto image galary widget uses Lightbox view control jquery.prettyphoto.js
Yii2 DynaTree Menu widget uses Dynamic tree view control jquery.dynatree.js
统计信息
- 总下载量: 44
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-17