times(50)->make()->each(function ($topic, $index) { if ($index == 0) { // $topic->field = 'value'; } }); Topic::insert($topics->toArray()); } }