Seeking advice on photoresistor led sequence project

This is wrong:

for(int i = 0; i < 8; i++) {      
    pinMode(ledPins, OUTPUT);
}

You have to access the i-th element of the array:

for(int i = 0; i < 8; i++) {      
    pinMode(ledPins[i], OUTPUT);
}