spatie/laravel-navigation
Define a navigation tree for Laravel apps and reuse it to build menus, breadcrumbs, and other nav UI. Manage sections, nested items, and active state in PHP, register navigation via service providers/container events, and render however you like.
laravel-menu) by migrating to this package’s renderless architecture for future scalability.Adopt if:
laravel-menu or need a modern, maintained alternative.Look elsewhere if:
For Executives: "This package lets us treat navigation like a first-class citizen in our Laravel apps—centralizing logic for menus, breadcrumbs, and more while keeping UI flexible. It’s like a ‘headless’ navigation system: backend defines the rules (e.g., ‘show X to admins’), and frontend teams own the presentation. This reduces tech debt, speeds up feature delivery (e.g., role-based dashboards), and future-proofs our architecture for SPAs or multi-tenant needs. Low risk: MIT-licensed, actively maintained by Spatie (trusted Laravel contributors), and used by [insert relevant company if applicable]."
For Engineering:
*"Spatie’s laravel-navigation replaces ad-hoc menu logic with a clean, declarative API. Key wins:
Navigation::make()->add(...)) and reuse it for menus, breadcrumbs, or APIs.if (auth()->user()->isAdmin())).How can I help you explore Laravel packages today?