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
2727 {
2828 $ this ->publishConfig ();
2929
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 ) {
3631 /** @var \Illuminate\Routing\Route $this */
37- RegisterMenu::add ($ this , $ label );
32+ RegisterMenu::add ($ this , $ label, $ groupLabel );
3833 return $ this ;
3934 });
40-
41- Route::macro ('group ' , function ($ attributes , $ routes ) {
42- $ result = \Illuminate \Support \Facades \Route::buildGroup ($ attributes , $ routes );
43- RegisterMenu::endGroup ();
44- return $ result ;
45- });
4635 }
4736
4837 public function registerConfig ()
You can’t perform that action at this time.
0 commit comments