We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83390ab commit 3b005f6Copy full SHA for 3b005f6
src/Console/AddCountryCommand.php
@@ -107,6 +107,10 @@ public function handle()
107
$this->seedLanguages();
108
}
109
110
+ if ($this->isModuleEnabled('currencies')) {
111
+ $this->seedAllCurrencies();
112
+ }
113
+
114
$bar->finish();
115
116
$this->getOutput()->info('Done!');
@@ -252,6 +256,14 @@ private function seedLanguages(): void
252
256
253
257
254
258
259
+ private function seedAllCurrencies(): void
260
+ {
261
+ // currencies
262
+ foreach ($this->modules['currencies']['data'] as $currency) {
263
+ Models\Currency::create($currency);
264
265
266
255
267
/**
268
* @param array $array
269
* @param array $values
0 commit comments