The menu system will be beneficial to if we can do something like this in our layout ``` php <?= nav('main-menu') ?> ``` This will bring in the menu for 'main-menu'. If we want a custom view instead of the default `publish::navigation.menu` we can pass that as a second parameter... and any data as the 3rd parameter. ``` php <?= nav('main', 'layouts.custom.navigation', compact('user')) ?> ```
The menu system will be beneficial to if we can do something like this in our layout
This will bring in the menu for 'main-menu'.
If we want a custom view instead of the default
publish::navigation.menuwe can pass that as a second parameter... and any data as the 3rd parameter.