We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cf2b47 commit 797987cCopy full SHA for 797987c
config/laravel-menu-wrapper.php
@@ -0,0 +1,23 @@
1
+<?php
2
+
3
+use Illuminate\Routing\Route;
4
5
+return [
6
+ /**
7
+ * ----------------------------------------------------------------------
8
+ * Determine the grouping method that will be used to group your menus
9
+ * this configuration will applied only if you give the group label
10
+ * on menu(). Refer to the README.md for more information
11
12
+ * Possible value: key, item
13
+ */
14
+ 'group_as' => 'key',
15
16
+ 'populate_items' => function (Route $route) {
17
+ return [
18
+ 'route_name' => $route->getName(),
19
+ 'uri' => $route->uri(),
20
+ 'method' => $route->getActionMethod(),
21
+ ];
22
+ }
23
+];
0 commit comments