public static function isInMenuLinks($categoriesID)
    {
        $isInMenulinks = MenuLink::where('belongsToID', $categoriesID)->where('belongsTo', 'category')->count();
        if ($isInMenulinks) {
            return true;
        }
        return false;
    }
public static function isInMenuLinks($categoriesID)
    {
        $isInMenulinks = MenuLink::where('belongsToID', $categoriesID)->where('belongsTo', 'category')->count();
        if ($isInMenulinks) {
            return true;
        }
        return false;
    }
public static function isInMenuLinks ( $ categoriesID ) { $ isInMenulinks = MenuLink :: where ( 'belongsToID' , $ categoriesID ) -> where ( 'belongsTo' , 'category' ) -> count ( ) ; if ( $ isInMenulinks ) { return true ; } return false ; }
Checks if a category is part of a menulink.

@param  int $categoriesID
@return bool
@throws \Exception
Checks if a category is part of a menulink .