priority menu item
This commit is contained in:
1 parent
a48088581f
commit
cb2c719b1b
12 files changed
+29
-14
No files matched your search
@@ -10,7 +10,7 @@ class MenuWidget extends Widget
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
$menu = Menu::where("parent_id", 0)->get();
|
||||
$menu = Menu::where("parent_id", 0)->get()->sortBy("priority");
|
||||
$this->cgView->render('/admin/menu.php', ['menu' => $menu]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user