protected function parseCountries($countries)
    {
        return Collection::make(is_array($countries) ? $countries : func_get_args())
                         ->map(function ($country) {
                             return strtoupper($country);
                         })
                         ->filter(function ($value) {
                             return static::isValidCountryCode($value);
                         })->toArray();
    }
protected function parseCountries($countries)
    {
        return Collection::make(is_array($countries) ? $countries : func_get_args())
                         ->map(function ($country) {
                             return strtoupper($country);
                         })
                         ->filter(function ($value) {
                             return static::isValidCountryCode($value);
                         })->toArray();
    }
protected function parseCountries ( $ countries ) { return Collection :: make ( is_array ( $ countries ) ? $ countries : func_get_args ( ) ) -> map ( function ( $ country ) { return strtoupper ( $ country ) ; } ) -> filter ( function ( $ value ) { return static :: isValidCountryCode ( $ value ) ; } ) -> toArray ( ) ; }
Parse the provided phone countries to a valid array.

@param string|array $countries
@return array
Parse the provided phone countries to a valid array .