api = $api; } public function handle(): void { $this->api->confessions()->each(function ($confession) { Confession::create(['nami_id' => $confession->id, 'name' => $confession->name, 'is_null' => $this->nullName === $confession->name]); }); } public function restore(): void { DB::table('confessions')->delete(); } }