stepanenko3/nova-menu-collapsed

This Laravel Nova package allows you to set menu state collapsed as default

Installs: 6 713

Dependents: 0

Suggesters: 0

Security: 0

Stars: 11

Watchers: 3

Forks: 2

Open Issues: 0

Language:JavaScript

v1.2.2 2023-05-09 20:23 UTC

This package is auto-updated.

Last update: 2024-04-09 22:11:21 UTC


README

Latest Version on Packagist Total Downloads License

This tool gives you the ability to set the default collapse state for Nova 4.0 menu items.

Requirements

  • php: >=8.0
  • laravel/nova: ^4.0

Installation

Install 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,
    ];
}

Setting up

After publishing the configuration file, you have to make some required changes in config/nova-menu-collapsed.php:

'collapsed' => true,

Credits

License

Nova Menu Builder is open-sourced software licensed under the MIT license.