Skip to content

Releases: spatie/menu

2.2.0

09 Feb 10:27
Compare
Choose a tag to compare
  • Added: if function

2.1.3

02 Feb 12:52
Compare
Choose a tag to compare
  • Fixed setting an active url when the url is exactly the same

2.1.2

02 Feb 12:48
Compare
Choose a tag to compare
  • Fixed setting an active url when the url is exactly the same

2.1.1

25 Jan 09:50
Compare
Choose a tag to compare
  • Added: The request root path when setting the active path

2.1.0

24 Nov 14:41
Compare
Choose a tag to compare
  • Added: Optional third $initial parameter in Menu::build

2.0.1

11 Oct 09:05
Compare
Choose a tag to compare
  • Fixed: Require ^1.0.0 of spatie/url

2.0.0

11 Oct 09:00
Compare
Choose a tag to compare
  • Added: Added the static Menu::build and non-static Menu::fill methods to create menu's from arrays.
  • Added: The setActive method on Activatable now also accepts a non-strict boolean or callable parameter to set $active to true or false.
  • Added: Menu::html and Menu::htmlIf now accept a $parentAttributes array as their second arguments.
  • Changed: The HtmlAttributes and ParentAttributes traits have been renamed to HasHtmlAttributes and HasParentAttributes.
  • Changed: The HasUrl interface and trait has been removed. Url-related methods now also are part of the Activatable interface and trait.
  • Removed: The void and voidIf have been removed. These can be replaced by html and htmlIf, with empty strings as their first arguments
  • Removed: The prefixLinks and prefixUrls 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 with applyToAll.

Upgrade guide (it's easy!): https://github.com/spatie/menu#upgrading-to-20

1.4.0

02 Sep 14:19
Compare
Choose a tag to compare
  • Added a HasUrl trait
  • Deprecated prefixLinks in favor of prefixUrls

1.3.0

29 Aug 14:01
Compare
Choose a tag to compare
  • Added submenuIf

1.2.1

01 Aug 13:53
Compare
Choose a tag to compare
  • Internal refactors