Repository navigation
2.0.0
- Added: Added the static
Menu::buildand non-staticMenu::fillmethods to create menu's from arrays. - Added: The
setActivemethod onActivatablenow also accepts a non-strict boolean or callable parameter to set$activeto true or false. - Added:
Menu::htmlandMenu::htmlIfnow accept a$parentAttributesarray as their second arguments. - Changed: The
HtmlAttributesandParentAttributestraits have been renamed toHasHtmlAttributesandHasParentAttributes. - Changed: The
HasUrlinterface and trait has been removed. Url-related methods now also are part of theActivatableinterface and trait. - Removed: The
voidandvoidIfhave been removed. These can be replaced byhtmlandhtmlIf, with empty strings as their first arguments - Removed: The
prefixLinksandprefixUrlsmethods have been removed because they were too unpredictable in some case. There currently isn't an alternative for these, besides writing your own logic and applying it withapplyToAll.
Upgrade guide (it's easy!): https://github.com/spatie/menu#upgrading-to-20