Laravel rate limiter does not limit

While trying out Laravel 8 and the new rate limiter, I could not get it to work on my developer machine.

It turns out that the rate limiting mechanism is based on the cache (duh!), and I usually have that cache turned of during development. So, check your .env file!

// No rate limiting for you!
CACHE_DRIVER=sync

// This will work
CACHE_DRIVER=file