Download the PHP package codicastudio/menu-manager without Composer
On this page you can find all versions of the php package codicastudio/menu-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codicastudio/menu-manager
More information about codicastudio/menu-manager
Files in codicastudio/menu-manager
Package menu-manager
Short Description A random Codica Studio package.
License MIT
Homepage https://github.com/codicastudio/menu-manager
Informations about the package menu-manager
Collapsible Resource Manager
Provides an easy way to order and group your resources on the sidebar.
Installation
You can install the package via composer:
Next up, you must register the tool with Nova. This is typically done in the tools
method of the NovaServiceProvider.
Options
On the navigation
key only TopLevelResource
are allowed to be used, any other resource will be ignored.
Navigation Resources
TopLevelResource
Top-Level items aren't collapsible by default ('expanded' => null
). If you set expanded
to true
or false
, it will show a collapsible indicator on the right side of the heading. If true
, it will be open by default, if false
it will be closed by default.
NovaResource
You can either pass a \App\Nova\Resource::class
or a instance of NovaResource
Additionally you can redirect the user to specific views on click by chaining one of these methods:
Authorization is also respected for each of these views
Group
Group appears as a toggle with a +/- sign that allows user to collapse multiple items into a single entry on the sidebar:
InternalLink
Internal Link is an easy way to manually direct user to an specific URL using the default navigation mechanism:
LensResource
Lens Resource is a quickly way to add an entry on the sidebar that directs the user directly to an lens view for a given resource,
It requires 2 params: the resource the lens was used and the lens class itself you want to link to:
ExternalLink
External links are useful to add entries on the menu that redirects user to an external URL:
RawResource
If none of the pre-configured resources suffice your needs, RawResource provides an way to manually define what params the