Fix: initialize countries
This commit is contained in:
parent
f82b4a2920
commit
5f4f7fd72c
app/Initialize
|
@ -14,8 +14,8 @@ class InitializeCountries {
|
||||||
|
|
||||||
public function handle() {
|
public function handle() {
|
||||||
$this->bar->task('Synchronisiere Länder', function() {
|
$this->bar->task('Synchronisiere Länder', function() {
|
||||||
collect($this->api->countries()->data)->each(function($nationality) {
|
$this->api->countries()->each(function($country) {
|
||||||
\App\Country::create(['nami_id' => $nationality->id, 'name' => $nationality->descriptor]);
|
\App\Country::create(['nami_id' => $country->id, 'name' => $country->name]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue