laravel-menu
laravel-menu copied to clipboard
A quick way to create menus in Laravel
Submenus
Good afternoon. I added a submenu however I wanted to add a submenu to this one. How do I do in that case? Can someone help me?
$menu->add('Home', 'home')->data('role', ['administrator', 'user'], 'color', 'red'); The color doesn't appear
I just wanted to point out to anyone having issues with the [Filtering the items](https://github.com/lavary/laravel-menu#filtering-the-items) section for checking is a user can see the menu item based on their permissions,...
Would it be possible to only sort the subitems? See the example below, I'd like to only sort the children of the settings menu item. ```php Menu::make('mainmenu', function($menu) { $menu->add('Dashboard',...
Hello I have this HTML Menu Structure Adminstrator Users I try to figure out with $menu->add('' . __('Dashboard') . '', ['class' => 'nav-item', 'route' => 'dashboard']); $menu->add('' . __('Usuarios y...
It would be great if it would be possible to specify the active class for each element, the tests showed everything ok works Config: ``` 'default' => array( 'active_class_item' =>...
if we set attr() method on menu item or link,it will clear the menu active class,to fix this problem,we shoud made some change to function attr() on Lavary\Menu\Item and Lavary\Menu\Link...
I cannot understand how to build menu with nested categories from database. I have categories build with [laravel-nestedset](https://github.com/lazychaser/laravel-nestedset/issues) So normally I can build tree-like menu with this code in controller...
In my opinion it would be good if you would create an img() method like the raw() method. Then insted of this: `$menu->find('current_user')->raw("");` it would look like this: `$menu->find('current_user')->img("img_path...",['style' =>...
It would be greate to have third parameter on make method, which will give builder type to instantiate. For example: `Menu::make('AdminMenu', function($menu) {}, AdminMenu::class);` Then we could extend menu like:...