laravel-menu
laravel-menu copied to clipboard
A quick way to create menus in Laravel
If I use example code: ```php Menu::make('MyNavBar', function($menu){ $menu->group(['prefix' => 'pages', 'data-info' => 'test'], function($m){ $m->add('About', 'about'); $m->group(['prefix' => 'about', 'data-role' => 'navigation'], function($a){ $a->add('Who we are', 'who-we-are?'); $a->add('What we...
Menu::make creates a Builder instance and adds it to its internal $menu array before calling the callback. This way users can't use a subclass of Builder with custom methods implementing...
I need to override the method `Builder.php -> mergeStatic` switching in $attrs and $old like `$attrs['class'] = self::formatGroupClass($old, $attrs);` because I need to "add" class values after the blade template...
Hi, I am using your extension to create menu in my application and did all the settings as per extension settings, I want to show menu's in my application based...
Hi, I want to show menus based on User permissions and Roles in my application, I use Filter function there as per the documentation suggesting ->filter(function($item){ if(User::get()->can( $item->data('permission'))) { return...
Hi everybody . I want to build a menu and have an icon. So how should I do it? I don't know how to pass pictures in I have the...
I use Laravel 8. Andy Lavar Menu 1.8.3. I cleared the view cache and after that it stopped working. Before the cache clean it was working fine. my blade: ```...
In case you are using bootstrap 5 (currently in beta) you need to set the data-toggle-attribute option from data-toggle to data-bs-toggle in your config/laravel-menu/settings.php. I tried to change the value...
Hi, I am developing my applications module wise, So each module have its own menu's, When I login to admin area I want to show all those menu's there, If...