digital-creative / collapsible-resource-manager
A custom sidebar menu with collapsible groups
Fund package maintenance!
milewski
Installs: 681 741
Dependents: 1
Suggesters: 0
Security: 0
Stars: 194
Watchers: 6
Forks: 43
Open Issues: 7
Language:Vue
Requires
- php: >=8.1
- laravel/nova: ^4.28.0
- dev-main
- v2.2.1
- v2.2.0
- v2.1.0
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.0
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-scroll-on-mobile
This package is auto-updated.
Last update: 2024-10-24 09:37:11 UTC
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(), ]; }); //... } }
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
- Nova Dashboard - The missing dashboard for Laravel Nova!
- Nova Welcome Card - A configurable version of the
Help card
that comes with Nova. - Icon Action Toolbar - Replaces the default boring action menu with an inline row of icon-based actions.
- Expandable Table Row - Provides an easy way to append extra data to each row of your resource tables.
- Collapsible Resource Manager - Provides an easy way to order and group your resources on the sidebar.
- Resource Navigation Tab - Organize your resource fields into tabs.
- Resource Navigation Link - Create links to internal or external resources.
- Nova Mega Filter - Display all your filters in a card instead of a tiny dropdown!
- Nova Pill Filter - A Laravel Nova filter that renders into clickable pills.
- Nova Slider Filter - A Laravel Nova filter for picking range between a min/max value.
- Nova Range Input Filter - A Laravel Nova range input filter.
- Nova FilePond - A Nova field for uploading File, Image and Video using Filepond.
- Custom Relationship Field - Emulate HasMany relationship without having a real relationship set between resources.
- Column Toggler - A Laravel Nova package that allows you to hide/show columns in the index view.
- Batch Edit Toolbar - Allows you to update a single column of a resource all at once directly from the index page.
License
The MIT License (MIT). Please see License File for more information.