abolaradev/navix
Navix is a Laravel package for building and managing navigation menus in PHP, with a simple API for defining items, handling active states, and rendering customizable menus in Blade views.
composer require <vendor>/navix
php artisan navix:install
routes/navix.php. This is the central place to define navigation batches and items using Navix’s fluent API.navix() helper. Treat the returned value as a NavixCollection, not a plain array.main batch containing a nested “Products” group, icons, and optional badges.routes/navix.php rather than scattering links across Blade templates. Use multiple named batches for different surfaces, such as main, footer, account, or admin.NavixCollection and renders labels, icons, badges, URLs, and query parameters. This isolates your views from Navix’s fluent API.NavigationService or Blade component API that calls navix() internally. This gives you one place to add authorization filtering, analytics attributes, or fallback behavior.NavixCollection with getter and existence methods. Use those methods instead of array access, and check for optional properties such as icons or badges before rendering.routes/navix.php. The generated file is best for static/shared navigation. For role- or permission-specific menus, define the batch closer to the request lifecycle or filter the collection using Laravel gates/policies before rendering.navix() is missing. Run composer dump-autoload and confirm the service provider/helper is discovered. In unusual deployments, check the package’s installation docs for manual registration.?, fragments, or encoded values.navix() in a Blade/Livewire component and add active-state logic, permission checks, analytics, and custom markup there rather than modifying package files.How can I help you explore Laravel packages today?