Open kdocki opened 10 years ago
The menu system will be beneficial to if we can do something like this in our layout
<?= 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.
publish::navigation.menu
<?= 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.menu
we can pass that as a second parameter... and any data as the 3rd parameter.