public static function country($locale = 'default')
    {
        if ($locale == 'default') {
            $locale = app()->getLocale();
        }

        if (config('language.mode.code', 'short') == 'short') {
            $code = strtolower(substr(self::getLongCode($locale), 3));
        } else {
            $code = strtolower(substr($locale, 3));
        }

        return $code;
    }
public static function country($locale = 'default')
    {
        if ($locale == 'default') {
            $locale = app()->getLocale();
        }

        if (config('language.mode.code', 'short') == 'short') {
            $code = strtolower(substr(self::getLongCode($locale), 3));
        } else {
            $code = strtolower(substr($locale, 3));
        }

        return $code;
    }
public static function country ( $ locale = 'default' ) { if ( $ locale == 'default' ) { $ locale = app ( ) -> getLocale ( ) ; } if ( config ( 'language.mode.code' , 'short' ) == 'short' ) { $ code = strtolower ( substr ( self :: getLongCode ( $ locale ) , 3 ) ) ; } else { $ code = strtolower ( substr ( $ locale , 3 ) ) ; } return $ code ; }
Get country code based on locale.

@param string $locale

@return mixed
Get country code based on locale .