Skip to content

Releases: spatie/menu

2.8.0

05 Nov 12:38
Compare
Choose a tag to compare
  • Add exact-active class to links that exactly match the current URL. This is accompanied by a setExactActiveClass(string $class) method to set the class name

2.7.0

23 Oct 08:28
Compare
Choose a tag to compare
  • Add IteratorAggregate interface to Menu class

2.6.0

10 Sep 12:07
Compare
Choose a tag to compare
  • Add beforeRender and willRender hooks that are called when an item is rendered

2.5.0

02 Mar 10:21
Compare
Choose a tag to compare
  • This release adds a few methods to create non-ul menus, which allows for Bootstrap 4 compatibility
  • Added Menu::setWrapperTag and Menu::withoutWrapperTag to set a custom wrapper tag name for the menu list. Default: ul
  • Added Menu::setParentTag & Menu::withoutParentTag to determine which tag should be used for the item's parent element. Default: li
  • Added Menu::setActiveClassOnLink and Menu::setActiveClassOnParent to determine where the active class should be applied

2.4.1

13 Nov 09:10
Compare
Choose a tag to compare
  • Allow invokable classes as callbacks

2.4.0

17 Oct 16:18
Compare
Choose a tag to compare
  • Added Menu::empty and Html::empty method for adding empty list items

2.3.1

29 Aug 13:47
Compare
Choose a tag to compare
  • Extracted a ActiveUrlChecker class for public use

2.3.0

28 Aug 06:32
Compare
Choose a tag to compare
  • Added append and prepend methods to Link

2.2.2

11 Jul 06:44
Compare
Choose a tag to compare
  • Fixed: Returning a menu instance is now optional with fill and build

2.2.1

07 Mar 08:55
Compare
Choose a tag to compare
  • Fixed: Setting items active with urls that start with the same string