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