Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
C

Collapsible Resource Manager

Readme

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.

Screenshots

Reviews

By pesovski on November 18, 2021

This package works extremely well. Good job for the creator. I couldn't find one option though, how to add a custom tool inside a TopLevelResource?

By LeeBin on April 14, 2021

It Works!

By Milkhan on August 4, 2020

It is perfect! All your packages are very professional! Thank you!

By Cord on March 11, 2020

The missing menu component for Nova! Hope we can get the popular modern 3 column layout :)

By Eugene van der Merwe on March 2, 2020

This package is a complete lifesaver! Once you start developing a larger Nova application the built-in menu system doesn't suffice. This menu, especially the collapsible and remember state, and the fact that I can order menus in any way, means that my application still looks good even though it very large. One of my top Nova packages.

Back to Top
Added 6 years ago
Last updated 1 Year Ago
Version v2.3.0
Nova Version ^5.0
Composer
digital-creative/collapsible-resource-manager
GitHub stars 201
Packagist downloads 852,711

Favorites

42 users favorited

Rating

4.90
(out of 5)
★★★★★
★★★★
★★★
★★
17 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas