Skip to content

Commit aa19cd3

Browse files
authored
Merge pull request #7 from sukristyan/dev
make groupLabel as optional parameter
2 parents 34a7722 + 7861b07 commit aa19cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CustomRouteProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function boot(): void
2727
{
2828
$this->publishConfig();
2929

30-
Route::macro('menu', function (string $label, string $groupLabel) {
30+
Route::macro('menu', function (string $label, string $groupLabel = '') {
3131
/** @var \Illuminate\Routing\Route $this */
3232
RegisterMenu::add($this, $label, $groupLabel);
3333
return $this;

0 commit comments

Comments
 (0)