This Laravel Nova package allows you to set menu state collapsed as default
stepanenko3/nova-menu-collapsed is a Laravel package for this laravel nova package allows you to set menu state collapsed as default.
It currently has 12 GitHub stars and 39.077 downloads on Packagist (latest version v1.2.2).
Install it with composer require stepanenko3/nova-menu-collapsed.
Discover more Laravel packages by stepanenko3
or browse all Laravel packages to compare alternatives.
Last updated
This tool gives you the ability to set the default collapse state for Nova 4.0 menu items.
php: >=8.0laravel/nova: ^4.0Install the package in a Laravel Nova project via Composer and edit the configuration file
# Install the package
composer require stepanenko3/nova-menu-collapsed
# Publish the configuration file and edit it to your preference
php artisan vendor:publish --provider="Stepanenko3\NovaMenuCollapsed\ToolServiceProvider" --tag="config"
Register the tool with Nova in the tools() method of the NovaServiceProvider:
// in app/Providers/NovaServiceProvider.php
public function tools()
{
return [
// ...
new \Stepanenko3\NovaMenuCollapsed\MenuCollapsed,
];
}
After publishing the configuration file, you have to make some required changes in config/nova-menu-collapsed.php:
'collapsed' => true,
Nova Menu Builder is open-sourced software licensed under the MIT license.