Writing Idempotent API Endpoints: A Practical Guide for Laravel
How to make POST endpoints safe to retry using idempotency keys, without duplicating orders, charges or emails.
How to make POST endpoints safe to retry using idempotency keys, without duplicating orders, charges or emails.
A practical guide to transactions, SELECT FOR UPDATE and optimistic locking for data that must stay correct under concurrency.
How Sanctum handles both SPA cookie authentication and mobile API tokens, and how to scope tokens with abilities instead of all-or-nothing access.
Beyond basic Cache::remember calls: how to invalidate cached data correctly and avoid cache stampedes under load.
How to change a production schema without locking tables or breaking the currently deployed code, using an expand-and-contract approach.
A practical approach to API versioning in Laravel using resource classes, so you can evolve a response shape without breaking existing clients.
A practical look at designing Laravel jobs that fail gracefully, retry sensibly, and leave a clear trail when they don't succeed.
A pre-launch security checklist for Laravel 11 and 12: configuration, authentication, input handling, uploads, headers and dependencies, with the code to fix each.
One endpoint was firing 62 queries per request. Here is how eager loading, Redis caching, indexes and rate limiting took it from 840 ms to under 100 ms.