public function loadCountriesJson()
    {
        $data = $this->helper->loadJson(
            $fileName = $this->helper->dataDir('countries/default/_all_countries.json')
        );

        if ($data->isEmpty()) {
            throw new \Exception("Could not load countries from {$fileName}");
        }

        return $data;
    }
public function loadCountriesJson()
    {
        $data = $this->helper->loadJson(
            $fileName = $this->helper->dataDir('countries/default/_all_countries.json')
        );

        if ($data->isEmpty()) {
            throw new \Exception("Could not load countries from {$fileName}");
        }

        return $data;
    }
public function loadCountriesJson ( ) { $ data = $ this -> helper -> loadJson ( $ fileName = $ this -> helper -> dataDir ( 'countries/default/_all_countries.json' ) ) ; if ( $ data -> isEmpty ( ) ) { throw new \ Exception ( "Could not load countries from {$fileName}" ) ; } return $ data ; }
Load countries json file.
@return \PragmaRX\Coollection\Package\Coollection
@throws \Exception
Load countries json file .