spatie/menu
Fluent, extensible menu builder for Laravel. Compose navigation with a clean API, render as HTML, and customize output via presenters and macros. Supports active state handling, links, submenus, and easy integration with Blade and your app’s routing.
You can install the menu package via composer:
composer require spatie/menu
If you're in a Laravel environment, you'll want to require laravel-menu instead:
composer require spatie/laravel-menu
If you use Laravel version lower than 5.5 and you want to use a facade, you'll need to register the service provider and facade class names (these are both optional):
// config/app.php
'providers' => [
// ...
Spatie\Menu\Laravel\MenuServiceProvider::class,
],
'aliases' => [
// ...
'Menu' => Spatie\Menu\Laravel\Facades\Menu::class,
],
How can I help you explore Laravel packages today?