workup/collapsible-resource-manager
Composer 安装命令:
composer require workup/collapsible-resource-manager
包简介
A custom sidebar menu with collapsible groups
README 文档
README
Provides an easy way to order and group your resources on the sidebar.
Installation
You can install the package via composer:
composer require digital-creative/collapsible-resource-manager
Usage
This package can serve as a seamless replacement for Nova's default sidebar menu.
The only modification it makes to the original Nova menu is the addition of the ->icon() method to the MenuItem class, which enables you to easily incorporate icons into each menu item.
For all available options you can check nova documentation here.
class NovaServiceProvider extends NovaApplicationServiceProvider { public function boot(): void { //... Nova::mainMenu(function (Request $request): array { return [ MenuSection::make('Content', [ MenuGroup::make('User Base', [ MenuItem::resource(User::class)->icon('<svg>...</svg>'), MenuItem::resource(Article::class)->icon('annotation'), MenuItem::resource(Comment::class)->icon('chat-alt'), ]), ])->icon('lightning-bolt')->collapsable(), ]; }); //... } }
⭐️ Show Your Support
Please give a ⭐️ if this project helped you!
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 967
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-15