DocsDeveloper guideBuild an add-on
Menus
Two ways to appear in the menu: a new app of your own (menu), or rows added to an app that already exists (menu_patches).
1 min read
A new app: menu
Each entry is one root app: key, label, an SVG path as icon, the ability that shows it, the URL prefixes it owns as match, its groups of items (label + href), and a sequence for its place (app/Addons/Room/addon.php:25-55). Entries are shared with every page (app/Providers/AddonServiceProvider.php:269-286).
Rows in another app: menu_patches
A patch names the host app as target and can relabel it, add groups, insert rows before or after a named row, or replace a row. Any node can carry 'setting' => [table, column] or 'gate' => 'multi_currency'. The server drops gated nodes before the page sees them (app/Support/Addons/AddonManager.php:63-96). Only installed add-ons are read, so uninstalling restores the host menu by itself (:69-71).