Skip to content

Version 2.1.5 Stable

Latest
Compare
Choose a tag to compare
@gravitano gravitano released this 17 Jul 20:44
· 3 commits to 2.1 since this release
  • Added hideWhen feature to menu item class. This feature is helpful for hiding specific menu item. The menu item will hidden if the callback result is returning true value.
Menu::make('main', function () {
    $menu->url('foo','Foo')->hideWhen(function () {
      // return boolean
      return Auth::check();
    });
});