New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

digital-creative/collapsible-resource-manager

A custom sidebar menu with collapsible groups
938,385 199
Install
composer require digital-creative/collapsible-resource-manager
Latest Version:v2.3.0
PHP:>=8.1
License:MIT
Last Updated:Feb 11, 2025
Links: GitHub  ·  Packagist
Maintainer: milewski

Collapsible Resource Manager

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.

Related Packages

emuniq/filament-collapsible-subnav

A Filament v3, v4 & v5 plugin for collapsible sub-navigation sidebar.

22,087 10
slym758/filament-collapsible-sidebar

A Filament v4 plugin that adds a collapsible sidebar with icon-only view

690 1
epartment/nova-dependency-container

A Laravel Nova field container allowing to depend on other fields values

4,693,752 378
eminiarts/nova-tabs

Laravel Nova - Tabs.

4,610,439 464

Version History

Version Released PHP License
v2.3.0 >=8.1 MIT
v2.2.1 >=8.1 MIT
v2.2.0 >=8.1 MIT
v2.1.0 >=8.1 MIT
v2.0.7 >=8.1 MIT