Skip to content

Commit 34a7722

Browse files
authored
Merge pull request #5 from sukristyan/dev
customrouteprovider.php are wrong
2 parents 1213417 + 808a7f0 commit 34a7722

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

src/CustomRouteProvider.php

+2-13
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)