Download the PHP package lunestudio/filament-navigation-manager without Composer
On this page you can find all versions of the php package lunestudio/filament-navigation-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lunestudio/filament-navigation-manager
More information about lunestudio/filament-navigation-manager
Files in lunestudio/filament-navigation-manager
Package filament-navigation-manager
Short Description A navigation manager for Filament projects.
License MIT
Informations about the package filament-navigation-manager
Filament Navigation Manager
A menu management plugin for Filament.
Installation
You can install the package via composer:
Then run the installation command to publish migrations and assets:
After that, you will need to add a plugin to your AdminPanelProvider
To publish the config file, run:
Here is the content of the published config file:
Linkable items must consider the properties of the models and the attributes of the routes.
The properties model_prop_to_pluck
, item_prop_to_text
, and model_prop_to_route
must be fillable.
At the same time, the model_prop_to_route
property must be defined with the same name as the model property, and the route must be named.
An example for the linkable User is:
And in the model:
Menu Resource
This is the index page for creating menus.
You can define the following properties: Name
, Location
, Append profile item
and Keep on mobile
.
You can also add menu items and define: Parent Item
, Linkable Type
, Linkable Id
, Custom Link
, Ícon
, Name
, Extra Classes
and Link Target
.
Afterward, you can reorder items by dragging and dropping them.
Menu Blade Component
To make it as easy as possible to output your menu, Lunestudio provides an
<x-navigation-manager::menu>
blade component.
The default location is main
, but you can change it to any registered menu location.
This is the default view
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-navigation-manager with dependencies
guava/filament-icon-picker Version ^2.2
spatie/eloquent-sortable Version ^4.4
spatie/laravel-package-tools Version ^1.18