Skip to content

Extract reusable navigation and configurable menu templates - #1

Merged
CrazyBoy49z merged 1 commit into
mainfrom
feature/extract-navigation
Sep 23, 2026
Merged

CrazyBoy49z merged 1 commit into
mainfrom
feature/extract-navigation

Conversation

@CrazyBoy49z

@CrazyBoy49z CrazyBoy49z commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Replace the Laravel package skeleton with a standalone navigation package. Move the menu manager, ordering registry, facade and Blade templates from lazy-admin. Keep request-scoped manager and singleton module registry; allow overriding the menu, item and label views via standard Laravel package view overrides, Menu::useView() or a per-render Menu::render($view) argument. No menu config file is needed. Include independent menu tests and Git-only installation instructions.

Related lazy-admin draft PR #35 uses this package through a Composer VCS dependency and keeps its old Menu, MenuManager, MenuRegistry and facade imports as compatibility shims. The dependency points to dev-feature/extract-navigation until this branch is merged; switch to dev-main before landing the admin PR. Latest push: PHPStan, styling and all 24/24 GitHub Actions test matrix jobs passed, including config-free template selection and native Blade partial override tests. Private GitHub access is required for Composer in the dependent lazy-admin CI.

Follow-up: Menu::register(..., group: 'admin.menu.blog') inserts a translated section heading, and addItem('admin.blog.index') or createMenu('admin.blog.index') use the route name as their translation key when no label is supplied. Explicit labels and manual group pushes still work. Missing before/after anchors are ignored, and registration invalidates the order cache when an optional module appears. Latest CI: PHPStan passes and all 24/24 test matrix jobs succeed.

@CrazyBoy49z
CrazyBoy49z force-pushed the feature/extract-navigation branch from 6884300 to 936188b Compare September 23, 2026 09:06
@CrazyBoy49z
CrazyBoy49z marked this pull request as ready for review September 23, 2026 09:10
@CrazyBoy49z
CrazyBoy49z merged commit a6057c5 into main Sep 23, 2026
51 checks passed
@CrazyBoy49z
CrazyBoy49z deleted the feature/extract-navigation branch September 23, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant