We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dae6066 + e8beb28 commit 808a7f0Copy full SHA for 808a7f0
src/CustomRouteProvider.php
@@ -27,22 +27,11 @@ public function boot(): void
27
{
28
$this->publishConfig();
29
30
- Route::macro('groupMenu', function (string $label) {
31
- RegisterMenu::groupping($label);
32
- return $this;
33
- });
34
-
35
- Route::macro('menu', function (string $label) {
+ Route::macro('menu', function (string $label, string $groupLabel) {
36
/** @var \Illuminate\Routing\Route $this */
37
- RegisterMenu::add($this, $label);
+ RegisterMenu::add($this, $label, $groupLabel);
38
return $this;
39
});
40
41
- Route::macro('group', function ($attributes, $routes) {
42
- $result = \Illuminate\Support\Facades\Route::buildGroup($attributes, $routes);
43
- RegisterMenu::endGroup();
44
- return $result;
45
46
}
47
48
public function registerConfig()
0 commit comments