insert([ 'lecturer_identification_number' => str_pad($i + 1, 10, '0', STR_PAD_LEFT), 'full_name' => $names[$i], 'phone_number' => '08123456'.rand(1000, 9999), 'sex' => $i % 2 === 0 ? Sex::Male->value : Sex::Female->value, 'address' => 'Jl. Kampus No. '.rand(1, 200), 'date_of_birth' => Carbon::now()->subYears(rand(30, 55))->toDateString(), 'place_of_birth' => $cities[$i], ]); } } }