src/Menu.php
public static function getCustomMenuItems($user)
    {
        $menuItems = [];

        if (array_key_exists('menu', config('laralum'))) {
            foreach (config('laralum.menu') as $custom_menu) {
                $pm = new self();
                $pm->name(ucfirst($custom_menu['title']));
                $pm->items = array_merge($pm->items, static::getPackageMenuItems($custom_menu, $user));

                if (count($pm->items) > 0) {
                    array_push($menuItems, $pm);
                }
            }
        }

        return $menuItems;
    }
public static function getCustomMenuItems($user)
    {
        $menuItems = [];

        if (array_key_exists('menu', config('laralum'))) {
            foreach (config('laralum.menu') as $custom_menu) {
                $pm = new self();
                $pm->name(ucfirst($custom_menu['title']));
                $pm->items = array_merge($pm->items, static::getPackageMenuItems($custom_menu, $user));

                if (count($pm->items) > 0) {
                    array_push($menuItems, $pm);
                }
            }
        }

        return $menuItems;
    }
public static function getCustomMenuItems ( $ user ) { $ menuItems = [ ] ; if ( array_key_exists ( 'menu' , config ( 'laralum' ) ) ) { foreach ( config ( 'laralum.menu' ) as $ custom_menu ) { $ pm = new self ( ) ; $ pm -> name ( ucfirst ( $ custom_menu [ 'title' ] ) ) ; $ pm -> items = array_merge ( $ pm -> items , static :: getPackageMenuItems ( $ custom_menu , $ user ) ) ; if ( count ( $ pm -> items ) > 0 ) { array_push ( $ menuItems , $ pm ) ; } } } return $ menuItems ; }
Get custom menus defined in the laralum config.

@return [type] [description]
Get custom menus defined in the laralum config .