Skip to content

Commit 501828f

Browse files
authored
core(fix): make groupLabel optional
1 parent 808a7f0 commit 501828f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CustomRouteProvider.php

Lines changed: 1 addition & 1 deletion
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)