diff --git a/config/menu.php b/config/menu.php index 4f0f434..b4cce0d 100755 --- a/config/menu.php +++ b/config/menu.php @@ -15,6 +15,20 @@ 'enabled' => env('MENU_MIDDLEWARE_ENABLED', true), + /* + |-------------------------------------------------------------------------- + | Menu Item Sorting + |-------------------------------------------------------------------------- + | + | This option controls the default sorting direction of menu items. + | Supported values are: + | + | - 'asc' : Sort menu items in ascending order + | - 'desc' : Sort menu items in descending order + | + */ + 'order_by' => 'asc', + /* |-------------------------------------------------------------------------- | Include Route List diff --git a/resources/lang/en/menus.php b/resources/lang/en/menus.php index 5250f12..d31e26f 100755 --- a/resources/lang/en/menus.php +++ b/resources/lang/en/menus.php @@ -25,6 +25,7 @@ 'icon' => 'Icon', 'class' => 'Class', 'attr' => 'Attributes', + 'position' => 'Position', 'privilege' => 'Privilege', 'visible' => 'Status', 'visible_1' => 'Visible', diff --git a/resources/views/menus/form.blade.php b/resources/views/menus/form.blade.php index a7f57ea..c8e73c2 100755 --- a/resources/views/menus/form.blade.php +++ b/resources/views/menus/form.blade.php @@ -69,6 +69,14 @@ class="hide"> +