netcore/module-admin
Composer 安装命令:
composer require netcore/module-admin
包简介
Netcore CMS :: Administration panel base
README 文档
README
This module adds an administration panel to the site, which gives access to other module administration and menu editing. From here you will be able to edit the site content if Content module is present, add/change the menu items etc.
Pre-installation
This package is part of Netcore CMS ecosystem and is only functional in a project that has following packages installed:
https://github.com/netcore/netcore
https://github.com/netcore/module-user
https://github.com/netcore/module-setting
https://github.com/nWidart/laravel-modules
Installation
Require this package with composer:
composer require netcore/module-admin
Publish config, assets, migrations. Migrate and seed:
php artisan module:publish Admin
php artisan module:publish-migration Admin
php artisan migrate
php artisan module:seed Admin
Usage
You can edit the admin menu and client menus in the Menus section
You can access the menu an it's items from a menu() helper function
menu('leftAdminMenu')->getItemTree();
To get all menus use
menu()->get();
To render a menu from a template use
menu('<MENU KEY>')->render('<TEMPLATE NAME>');
By default this function will look in the resources/views/templates/menu directory for the template, but you can also provide a different path
menu('<MENU KEY>')->render('<TEMPLATE NAME>', '<PATH>');
For example
menu('leftAdminMenu')->render('menu', 'client.partials');
Seeding
You can add new menus by creating seeders
$menus = [ [ name => 'leftAdminMenu', type => 'admin', items => [ 'name' => 'Dashboard', 'icon' => 'ion-ios-pulse-strong', 'type' => 'route', 'value' => 'admin::dashboard.index', 'module' => 'Admin', 'is_active' => 1, 'parameters' => json_encode([]) ], [ 'name' => 'Menus', 'icon' => 'ion-navicon-round', 'type' => 'route', 'value' => 'admin::menu.index', 'module' => 'Admin', 'is_active' => 1, 'active_resolver' => 'admin::menu.*', 'parameters' => json_encode([]) ] ], [ name => 'mainClientMenu', type => 'public', items => [ [ 'name' => 'Homepage', 'icon' => 'fa-globe', 'type' => 'url', 'value' => '/', 'parameters' => json_encode([]) ], ] ] ]; foreach( $menus as $key => $menu ) { $menu = Menu::firstOrCreate([ 'name' => $menu['name'], 'type' => $menu['type'] ]); foreach( $menu['items'] as $item ){ $menu->items()->firstOrCreate($item); } }
netcore/module-admin 适用场景与选型建议
netcore/module-admin 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 2.76k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 10 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「admin」 「modules」 「laravel」 「netcore」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 netcore/module-admin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 netcore/module-admin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 netcore/module-admin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This is Paymorrow module for OXID eShop.
2lenet/EasyAdminPlusBundle
Analysis module for finding problematical shop data.
yii2 swiper slider
An interactive tour through the TYPO3 backend.
Modular Backend Code Generation Engine for laravel 9.2, Vue.js 3.x and Tailwindcss 3.x inspired. Inspired by nwidart/laravel-modules and savannabits/jetstream-inertia-generator
统计信息
- 总下载量: 2.76k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-24