Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Creating Sub Menu under Admin panel

    General Discussion
    2
    4
    755
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      himanshu-kmr last edited by

      I have created a package "contact" and want to create a menu in admin panel. The menu has been created but sub menu is not showing.

      To create a sub menu I have added a array on src/Config/admin-menu.php

      return [
          [
              'key' => 'contact',
              'name' => 'Contact',
              'route' => 'contact.admin.index',
              'sort' => 2,
              'icon-class' => 'dashboard-icon',
          ], [
              'key'   => 'contact.message',
              'name'  => 'Contact Messages',
              'route' =>'contact.admin.index',
              'sort'  => 1,
              'icon-class' => '',
          ], [
              'key'   => 'contact.address',
              'name'  => 'Manage Address',
              'route' =>'contact.admin.index',
              'sort'  => 2,
              'icon-class' => '',
          ]
      ];
      

      But on admin panel only Contact menu has been created no sub menu is showing.

      Please Help..

      Thanking You in advance.

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @himanshu-kmr,

        Just run php artisan config:cache.

        1 Reply Last reply Reply Quote 0
        • H
          himanshu-kmr last edited by

          @devansh-webkul said in Creating Sub Menu under Admin panel:

          php artisan config:cache

          @devansh-webkul Thankyou for your advice. I have cleared the cache but still sub menu not appearing....

          1 Reply Last reply Reply Quote 0
          • devansh-webkul
            devansh-webkul last edited by

            The third route should be different. And make sure whenever you change the menu and sub-menu. Just run the command php artisan config:cache.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post