public static function isInMenuLinks($postTypeID)
    {
        $menulinks = MenuLink::where('belongsToID', $postTypeID)->where('belongsTo', 'post_type')->count();
        if($menulinks) {
            return true;
        }
        return false;
    }
public static function isInMenuLinks($postTypeID)
    {
        $menulinks = MenuLink::where('belongsToID', $postTypeID)->where('belongsTo', 'post_type')->count();
        if($menulinks) {
            return true;
        }
        return false;
    }
public static function isInMenuLinks ( $ postTypeID ) { $ menulinks = MenuLink :: where ( 'belongsToID' , $ postTypeID ) -> where ( 'belongsTo' , 'post_type' ) -> count ( ) ; if ( $ menulinks ) { return true ; } return false ; }
Check if post type is being used as menulink

@param  int $postTypeID
@return bool
@throws \Exception
Check if post type is being used as menulink