Skip to content

Menu instance

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

Sometimes, maybe we need to add a new additional menu from a controller or other place. To get an instance of an existing menu, you can use the instance method.

$menu = menu()->instance('zurb-top-bar');

// You can also make additions to the menu again

$menu->add(['title' => 'Settings', 'route' => 'settings']);

$menu->url('profile', 'Profile');

$menu->route('settings', 'Settings');
Clone this wiki locally