Whenever i try to run npm run production and npm run watch in pacakages/webkul/admin, packages/webkul/ui and packages/webkul/shop, The following error occurs.How to solve it
Undefined variable $__env (View: /var/www/html/public) (View: /var/www/html/resources/themes/velocity/views/home/index.blade.php)
How to create menu for customers ?
rahul last edited by
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' );
Damayanti Nama last edited by
@rahul let me know where located register method on custom theme?