File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -27,22 +27,11 @@ public function boot(): void
27
27
{
28
28
$ this ->publishConfig ();
29
29
30
- Route::macro ('groupMenu ' , function (string $ label ) {
31
- RegisterMenu::groupping ($ label );
32
- return $ this ;
33
- });
34
-
35
- Route::macro ('menu ' , function (string $ label ) {
30
+ Route::macro ('menu ' , function (string $ label , string $ groupLabel ) {
36
31
/** @var \Illuminate\Routing\Route $this */
37
- RegisterMenu::add ($ this , $ label );
32
+ RegisterMenu::add ($ this , $ label, $ groupLabel );
38
33
return $ this ;
39
34
});
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
35
}
47
36
48
37
public function registerConfig ()
You can’t perform that action at this time.
0 commit comments