public static function isInMenuLinks($postID, $postType)
    {
        $isInMenulinks = MenuLink::where('belongsToID', $postID)->where('belongsTo', $postType)->count();
        if ($isInMenulinks) {
            return true;
        }
        return false;
    }
public static function isInMenuLinks($postID, $postType)
    {
        $isInMenulinks = MenuLink::where('belongsToID', $postID)->where('belongsTo', $postType)->count();
        if ($isInMenulinks) {
            return true;
        }
        return false;
    }
public static function isInMenuLinks ( $ postID , $ postType ) { $ isInMenulinks = MenuLink :: where ( 'belongsToID' , $ postID ) -> where ( 'belongsTo' , $ postType ) -> count ( ) ; if ( $ isInMenulinks ) { return true ; } return false ; }
Check if post is being used as menu link.

@param  integer $postID ID of the post
@return bool is this post being used in menu links
Check if post is being used as menu link .