This is a cross-cutting rule, so it lives where Chapter 6 put cross-cutting rules: in a middleware, applied to the routes that create things.
Laravel, shipping fast.
Chapter 8 · Idempotency and Safe Retries