We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 07f5d45 + dae6066 commit 1213417Copy full SHA for 1213417
src/CustomRouteProvider.php
@@ -25,6 +25,8 @@ public function register(): void
25
*/
26
public function boot(): void
27
{
28
+ $this->publishConfig();
29
+
30
Route::macro('groupMenu', function (string $label) {
31
RegisterMenu::groupping($label);
32
return $this;
@@ -50,4 +52,15 @@ public function registerConfig()
50
52
'laravel-menu-wrapper'
51
53
);
54
}
55
56
+ public function publishConfig()
57
+ {
58
+ if (!$this->app->runningInConsole()) {
59
+ return;
60
+ }
61
62
+ $this->publishes([
63
+ __DIR__ . '/../config/laravel-menu-wrapper.php' => config_path('laravel-menu-wrapper.php'),
64
+ ], 'laravel-menu-wrapper');
65
66
0 commit comments