You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Ensure `Items` are transformed to string before prepending or appending
13
31
14
32
## 2.10.2 - 2020-12-02
33
+
15
34
- Fix `methods_exists` check in PHP8
16
35
17
36
## 2.10.1 - 2020-12-02
37
+
18
38
- Ensure the necessary methods exist to check if a menu is active
19
39
20
40
## 2.10.0 - 2020-12-02
41
+
21
42
- Support `Item` instances in `Menu::prepend` so headers can be set active
22
43
23
44
## 2.9.0 - 2020-11-06
45
+
24
46
- Drop support for versions older than PHP 7.1
25
47
26
48
## 2.8.0 - 2018-11-05
49
+
27
50
- 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
28
51
29
52
## 2.7.0 - 2018-10-23
53
+
30
54
- Add `IteratorAggregate` interface to `Menu` class
31
55
32
56
## 2.6.0 - 2018-09-10
57
+
33
58
- Add `beforeRender` and `willRender` hooks that are called when an item is rendered
34
59
35
60
## 2.5.0 - 2018-03-02
61
+
36
62
- This release adds a few methods to create non-`ul` menus, which allows for Bootstrap 4 compatibility
37
63
- Added `Menu::setWrapperTag` and `Menu::withoutWrapperTag` to set a custom wrapper tag name for the menu list. Default: `ul`
38
64
- Added `Menu::setParentTag` & `Menu::withoutParentTag` to determine which tag should be used for the item's parent element. Default: `li`
39
65
- Added `Menu::setActiveClassOnLink` and `Menu::setActiveClassOnParent` to determine where the active class should be applied
40
66
41
67
## 2.4.1 - 2017-11-13
68
+
42
69
- Allow invokable classes as callbacks
43
70
44
71
## 2.4.0 - 2017-10-17
72
+
45
73
- Added `Menu::empty` and `Html::empty` method for adding empty list items
46
74
47
75
## 2.3.1 - 2017-08-29
76
+
48
77
- Extracted a `ActiveUrlChecker` class for public use
49
78
50
79
## 2.3.0 - 2017-08-28
80
+
51
81
- Added `append` and `prepend` methods to `Link`
52
82
53
83
## 2.2.2 - 2017-07-11
84
+
54
85
- Fixed returning a menu instance is now optional with `fill` and `build`
55
86
56
87
## 2.2.1 - 2017-03-07
88
+
57
89
- Fixed setting items active with urls that start with the same string
58
90
59
91
## 2.2.0 - 2017-02-09
92
+
60
93
- Added `if` function
61
94
62
95
## 2.1.3
96
+
63
97
- Fixed setting an active url when the url is exactly the same
64
98
65
99
## 2.1.1
100
+
66
101
- Added the request root path when setting the active path
67
102
68
103
## 2.1.0
104
+
69
105
- Added optional third `$initial` parameter in `Menu::build`
70
106
71
107
## 2.0.1
108
+
72
109
- Fixed require `^1.0.0` of spatie/url
73
110
74
111
## 2.0.0
112
+
75
113
- Added added the static `Menu::build` and non-static `Menu::fill` methods to create menu's from arrays.
76
114
- Added the `setActive` method on `Activatable` now also accepts a non-strict boolean or callable parameter to set `$active` to true or false.
77
115
- Added `Menu::html` and `Menu::htmlIf` now accept a `$parentAttributes` array as their second arguments.
@@ -81,31 +119,39 @@ All notable changes to `menu` will be documented in this file.
81
119
- 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`.
82
120
83
121
## 1.4.0
122
+
84
123
- Added a `HasUrl` trait
85
124
- Deprecated `prefixLinks` in favor of `prefixUrls`
86
125
87
126
## 1.3.0
127
+
88
128
- Added `submenuIf`
89
129
90
130
## 1.2.1
131
+
91
132
- Internal refactors
92
133
93
134
## 1.2.0
135
+
94
136
- New methods on `Menu`:
95
-
-`submenu` for submenus with optional headers
96
-
-`void` and `voidIf` for empty list items
97
-
-`wrap` to wrap the menu in an html tag with optional attributes
98
-
- A `blueprint` method to copy the menu without it's contents
99
-
- Html item convenience methods: `addItemClass`, `setItemAttribute`
100
-
- Html parent convenience methods: `addItemParentClass`, `setItemParentAttribute`
137
+
--`submenu` for submenus with optional headers
138
+
--`void` and `voidIf` for empty list items
139
+
--`wrap` to wrap the menu in an html tag with optional attributes
140
+
-- A `blueprint` method to copy the menu without it's contents
141
+
-- Html item convenience methods: `addItemClass`, `setItemAttribute`
142
+
-- Html parent convenience methods: `addItemParentClass`, `setItemParentAttribute`
143
+
-
101
144
- Added `HasHtmlAttributes` and `HasParentAttributes` interfaces
102
145
-`HtmlAttributes` and `ParentAttributes` now also have a `setAttributes` method
103
146
104
147
## 1.1.1
148
+
105
149
- Fixed `setActive` when setting active from a URL
106
150
107
151
## 1.1.0
152
+
108
153
- Added conditional `add` functions, `addIf`, `linkIf` and `htmlIf`
0 commit comments