public static function updateMenulink($category)
    {
        if(self::isInMenuLinks($category->categoryID)) {
            $menuLinks = MenuLink::where('belongsToID', $category->categoryID)->where('belongsTo', 'category')->get();
            foreach($menuLinks as $menuLink){
                $menuLink->params = $category->menuLinkParameters();
                $menuLink->save();
            }
        }
    }
public static function updateMenulink($category)
    {
        if(self::isInMenuLinks($category->categoryID)) {
            $menuLinks = MenuLink::where('belongsToID', $category->categoryID)->where('belongsTo', 'category')->get();
            foreach($menuLinks as $menuLink){
                $menuLink->params = $category->menuLinkParameters();
                $menuLink->save();
            }
        }
    }
public static function updateMenulink ( $ category ) { if ( self :: isInMenuLinks ( $ category -> categoryID ) ) { $ menuLinks = MenuLink :: where ( 'belongsToID' , $ category -> categoryID ) -> where ( 'belongsTo' , 'category' ) -> get ( ) ; foreach ( $ menuLinks as $ menuLink ) { $ menuLink -> params = $ category -> menuLinkParameters ( ) ; $ menuLink -> save ( ) ; } } }
Update category paremeters in MenuLink.

@param  $category
@throws \Exception
Update category paremeters in MenuLink .