api = $api; } public function handle(): void { $this->api->countries()->each(function($country) { \App\Country::create(['nami_id' => $country->id, 'name' => $country->name]); }); } }