定制 digital-creative/collapsible-resource-manager 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

digital-creative/collapsible-resource-manager

最新稳定版本:v2.3.0

Composer 安装命令:

composer require digital-creative/collapsible-resource-manager

包简介

A custom sidebar menu with collapsible groups

README 文档

README

Latest Version on Packagist Total Downloads License

Laravel Nova Collapsible Resource Manager in action

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(),
            ];    
        });
        //...
    }

}

Configuration

You can also enable/disable the main header menu handling. For example, if you don't want the user menu, theme switcher, and notification icon to be moved to the bottom left side, you can manually disable it by adding these lines to your Nova config file:

// config/nova.php

'vendors' => [
    'collapsible_resource_manager' => [
        'move_user_menu' => false,
        'move_theme_switcher' => false,
        'move_notification_center' => false,
        'section_title' => true,
        'collapse_on_select' => true,
        'collapse_on_refresh' => false,
    ]
]

⭐️ Show Your Support

Please give a ⭐️ if this project helped you!

Other Packages You Might Like

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 839.92k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 201
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 201
  • Watchers: 5
  • Forks: 52
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-28