In sentences where "last" is followed by a time period, the word "for" is optional. You can include it or omit it as you choose. There is no difference in meaning.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.