Skip to content

Modifying menus

Denis Duliçi edited this page Apr 11, 2019 · 1 revision

After we create a menu, maybe we need to add other additional menus. You may modify menu via the ->modify method.

menu()->modify('navbar', function ($menu) {
    $menu->add([
        'title' => 'Foo',
        'url' => 'bar',
    ]);
});
Clone this wiki locally