示例#1
0
 public function registerAdminMenu()
 {
     $adminMenu = ['sale' => ['label' => 'Sales', 'route' => '#']];
     AdminMenu::registerMenu('mage2-order', $adminMenu);
     $adminMenu = ['sale' => ['submenu' => ['order' => ['label' => 'Orders', 'route' => 'admin.order.index']]]];
     AdminMenu::registerMenu('mage2-order', $adminMenu);
     $orderStatusMenu = ['sale' => ['submenu' => ['order-status' => ['label' => 'Order Status', 'route' => 'admin.order-status.index']]]];
     AdminMenu::registerMenu('mage2-order', $orderStatusMenu);
 }
示例#2
0
 public function registerAdminMenu()
 {
     $adminMenu = ['page' => ['label' => 'Pages', 'route' => 'admin.page.index']];
     AdminMenu::registerMenu('mage2-page', $adminMenu);
 }
示例#3
0
 public function registerAdminMenu()
 {
     $adminUserMenu = ['user' => ['label' => 'Users', 'route' => '#', 'submenu' => ['admin-users' => ['label' => 'Admin Users', 'route' => 'admin.admin-user.index'], 'roles' => ['label' => 'Roles', 'route' => 'admin.role.index']]]];
     AdminMenu::registerMenu('mage2-user', $adminUserMenu);
 }
示例#4
0
 public function registerAdminMenu()
 {
     $adminMenu = ['system' => ['label' => 'System', 'route' => '#', 'submenu' => ['module' => ['label' => 'Module', 'route' => 'admin.module.index']]]];
     AdminMenu::registerMenu('mage2-system', $adminMenu);
 }
 /**
  * Bind data to the view.
  *
  * @param  View  $view
  * @return void
  */
 public function compose(View $view)
 {
     $adminMenus = (array) AdminMenu::getMenuItems();
     $view->with('adminMenus', $adminMenus);
 }
示例#6
0
 public function registerAdminMenu()
 {
     $adminMenu = ['system' => ['submenu' => ['theme' => ['label' => 'Themes', 'route' => 'admin.theme.index']]]];
     AdminMenu::registerMenu('mage2-system', $adminMenu);
 }
示例#7
0
 public function registerAdminMenu()
 {
     $adminUserMenu = ['catalog' => ['label' => 'Catalog', 'route' => '#', 'submenu' => ['category' => ['label' => 'Category', 'route' => 'admin.category.index'], 'product' => ['label' => 'Products', 'route' => 'admin.product.index']]]];
     AdminMenu::registerMenu('mage2-catalog', $adminUserMenu);
 }