public static function findByPostType($postTypeSlug)
    {
        $postType = PostType::findBySlug($postTypeSlug);
        if($postType) {
            return self::where('postTypeID', $postType->postTypeID)->get();
        }
        return;
    }
public static function findByPostType($postTypeSlug)
    {
        $postType = PostType::findBySlug($postTypeSlug);
        if($postType) {
            return self::where('postTypeID', $postType->postTypeID)->get();
        }
        return;
    }
public static function findByPostType ( $ postTypeSlug ) { $ postType = PostType :: findBySlug ( $ postTypeSlug ) ; if ( $ postType ) { return self :: where ( 'postTypeID' , $ postType -> postTypeID ) -> get ( ) ; } return ; }
Find category by Post Type.

@param string $postTypeSlug

@return object|boolean Category data if found, false if not found
Find category by Post Type .