| @@ 61-70 (lines=10) @@ | ||
| 58 | } |
|
| 59 | } |
|
| 60 | ||
| 61 | private function createCountryTranslations($translations) |
|
| 62 | { |
|
| 63 | foreach ($translations as $data) { |
|
| 64 | $translation = new CountryTranslation(); |
|
| 65 | $translation->country_id = $data['country_id']; |
|
| 66 | $translation->locale = $data['locale']; |
|
| 67 | $translation->name = $data['name']; |
|
| 68 | $translation->save(); |
|
| 69 | } |
|
| 70 | } |
|
| 71 | ||
| 72 | private function createCities($cities) |
|
| 73 | { |
|
| @@ 82-91 (lines=10) @@ | ||
| 79 | } |
|
| 80 | } |
|
| 81 | ||
| 82 | private function createCityTranslations($translations) |
|
| 83 | { |
|
| 84 | foreach ($translations as $data) { |
|
| 85 | $translation = new CityTranslation(); |
|
| 86 | $translation->city_id = $data['city_id']; |
|
| 87 | $translation->locale = $data['locale']; |
|
| 88 | $translation->name = $data['name']; |
|
| 89 | $translation->save(); |
|
| 90 | } |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * Reverse the migrations. |
|