spatie/laravel-menu
Build HTML menus in Laravel with a fluent API. Generate links via routes/actions/URLs, add classes and attributes, mark active items from the current request, and define reusable menu macros. Easy to render in Blade and customize output.
Add Laravel 13 support
Full Changelog: https://github.com/spatie/laravel-menu/compare/4.2.0...4.2.1
Full Changelog: https://github.com/spatie/laravel-menu/compare/4.1.2...4.2.0
Full Changelog: https://github.com/spatie/laravel-menu/compare/4.1.0...4.1.1
Added: PHP 8 only support Changed: All syntax changed to PHP 8+ Removed: PHP 7.x support
javascript: linksactionIf & actionIfCan signatures for Laravel 5.7 callable action syntaxSpatie\Menu\Laravel\Facades\Menuuse statement$route parameter in routeAdded a default $data argument to Menu::viewIf and Menu::viewIfCan
Fixed other url helpers so they can take the same type of parameters as the Laravel's counterparts
Link's action helper so it can take the same type of parameters as the Laravel's action helperspatie/menu to 2.0.View item implementation to use blade views as menu items.to prefix: Link::toAction, Link::toRoute and Link::toUrl.How can I help you explore Laravel packages today?