Menu::flags(String $flag1, String $flag2,...):$this
Set one or more flags for this menu. Flags are simple boolean options that modified the behavior of the menu if they are set. Currently there is only one such flag called "access_check". By default all menu items are rendered for performance reasons. If you have menu items that should only be shown depending on specific access permissions, you need to set this flag. This will slow down the rendering a bit, but make sure menu items inaccessible for the current user are hidden:
{{ Menu::load("main").flags("access_check") }}