The middleware above lets a request without a key through. That is the gentle way to introduce the feature: existing consumers keep working, and those who care...
Laravel, shipping fast.
Chapter 8 · Idempotency and Safe Retries