/** * Check if country is already installed. * * @param string $country * @return boolean */ public static function installed($country) { $seeder = self::loadSeeder($country); $country = $seeder->country(); if (Country::where('code', $country['code'])->count() > 0) { return true; } if (Region::where('country_code', $country['code'])->count() > 0) { return true; } if (City::where('country_code', $country['code'])->count() > 0) { return true; } return false; }