Recent Topics

How to create menu for customers ?



  • 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



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


Log in to reply