Releases: spatie/menu
Releases · spatie/menu
2.2.0
- Added:
if
function
2.1.3
- Fixed setting an active url when the url is exactly the same
2.1.2
- Fixed setting an active url when the url is exactly the same
2.1.1
- Added: The request root path when setting the active path
2.1.0
- Added: Optional third
$initial
parameter inMenu::build
2.0.1
- Fixed: Require
^1.0.0
of spatie/url
2.0.0
- Added: Added the static
Menu::build
and non-staticMenu::fill
methods to create menu's from arrays. - Added: The
setActive
method onActivatable
now also accepts a non-strict boolean or callable parameter to set$active
to true or false. - Added:
Menu::html
andMenu::htmlIf
now accept a$parentAttributes
array as their second arguments. - Changed: The
HtmlAttributes
andParentAttributes
traits have been renamed toHasHtmlAttributes
andHasParentAttributes
. - Changed: The
HasUrl
interface and trait has been removed. Url-related methods now also are part of theActivatable
interface and trait. - Removed: The
void
andvoidIf
have been removed. These can be replaced byhtml
andhtmlIf
, with empty strings as their first arguments - Removed: The
prefixLinks
andprefixUrls
methods 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
1.4.0
- Added a
HasUrl
trait - Deprecated
prefixLinks
in favor ofprefixUrls
1.3.0
- Added
submenuIf
1.2.1
- Internal refactors