public function seedCostTypes() { foreach ($this->costTypes as $costType) { CostType::create(['name' => $costType]); } }