api = $api; } public function handle(): void { $this->api->regions()->each(function ($region) { \App\Region::create(['nami_id' => $region->id, 'name' => $region->name, 'is_null' => $region->name == $this->nullName]); }); } public function restore(): void { DB::table('regions')->delete(); } }