spatie/laravel-menu
Build HTML menus in Laravel with a fluent API. Generate links from routes/actions/URLs, group items, add attributes/classes, and automatically set the active item from the current request. Extensible via macros; renders to HTML ready for Blade.
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
javascript: linksactionIf & actionIfCan signatures for Laravel 5.7 callable action syntaxSpatie\Menu\Laravel\Facades\Menuuse statement$route parameter in route$data argument to Menu::viewIf and Menu::viewIfCanLink'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.Menu class now implements the Illuminate\Contracts\Support\Htmlable interface5.1.14 or higher componentsadd functions urlIf, actionIf and routeIfadd function addIfCan, linkIfCan, htmlIfCan, urlIfCan, actionIfCan and routeIfCanHow can I help you explore Laravel packages today?