How to create menu for customers ?
Please follow below to show menu for fron-end.
- Create a 'menu.php' file inside 'Config' folder of your Package.
- Create Array of your menu like -
<?php return [ [ 'key' => 'account.key1', 'name' => 'name', 'route' =>'route', 'sort' => 6 ] ]; ?>
- 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' );
@rahul let me know where located register method on custom theme?