protected function data($locale)
    {
        if (! isset($this->data[$locale])) {
            $path = base_path('vendor/umpirsky/country-list/data/'.$locale.'/country.php');

            $this->data[$locale] = is_file($path) ? require $path : [];
        }

        return $this->data[$locale];
    }
protected function data($locale)
    {
        if (! isset($this->data[$locale])) {
            $path = base_path('vendor/umpirsky/country-list/data/'.$locale.'/country.php');

            $this->data[$locale] = is_file($path) ? require $path : [];
        }

        return $this->data[$locale];
    }
protected function data ( $ locale ) { if ( ! isset ( $ this -> data [ $ locale ] ) ) { $ path = base_path ( 'vendor/umpirsky/country-list/data/' . $ locale . '/country.php' ) ; $ this -> data [ $ locale ] = is_file ( $ path ) ? require $ path : [ ] ; } return $ this -> data [ $ locale ] ; }
Get the data for the given locale.

@param string $locale
@return array
Get the data for the given locale .