Bagisto Forum

    Bagisto

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

    How to create menu for customers ?

    Knowledge Base
    2
    2
    1410
    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.
    • R
      rahul last edited by

      Hi,

      Please follow below to show menu for fron-end.

      1. Create a 'menu.php' file inside 'Config' folder of your Package.
      2. Create Array of your menu like -
       <?php
      
      	return [
      	     [
      		'key' => 'account.key1',
      		'name' => 'name',
      		'route' =>'route',
      		'sort' => 6
      	    ]
              ];
         ?>
      
      1. Now you need to merge this file with 'menu.php' file of main config folder in customers array, so do it in your providers register method.
       $this->mergeConfigFrom(
              dirname(__DIR__) . '/Config/menu.php', 'menu.customer'
       );
      

      Thanks

      D 1 Reply Last reply Reply Quote 1
      • D
        Damayanti Nama @rahul last edited by

        @rahul let me know where located register method on custom theme?

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