public static function validatePostType($postTypeSlug = '')
    {
        if(!$postTypeSlug) {
            $postTypeSlug = \Request::route('postTypeSlug');
        }
        return ($postTypeSlug && !PostType::findBySlug($postTypeSlug));
    }
public static function validatePostType($postTypeSlug = '')
    {
        if(!$postTypeSlug) {
            $postTypeSlug = \Request::route('postTypeSlug');
        }
        return ($postTypeSlug && !PostType::findBySlug($postTypeSlug));
    }
public static function validatePostType ( $ postTypeSlug = '' ) { if ( ! $ postTypeSlug ) { $ postTypeSlug = \ Request :: route ( 'postTypeSlug' ) ; } return ( $ postTypeSlug && ! PostType :: findBySlug ( $ postTypeSlug ) ) ; }
Validate a post type from url.

@param  string $postTypeSlug
@return bool
Validate a post type from url .