Documentation improvements for extending menus #1186
MalindaWMD
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the extending menus with existing menus(https://docs.lunarphp.io/admin-hub/extending.html) not quiet clear.
It says, adding a new menu link to an existing section should be done by,
$section = Menu::slot('sidebar)->section('hub.products')
$section->addItem(\Closure $callback, $after = null);
However i was struggling with this approach. Maybe i was using the
AppServiceProvider
which i thing the right way to do it.Finally i was able to do this like this,
I think we should update the documentation to clearly explain above scenario. Happy to help.
Beta Was this translation helpful? Give feedback.
All reactions