Two checkouts racing for the last item in stock is a classic bug. Build a reservation system with lockForUpdate() that closes the race for good.
Latest News
Latest Links
More Articles
Cache::flexible() serves stale data while refreshing it in the background, so a slow origin never becomes a slow response for your users.
Laravel has built-in string helpers for redacting card numbers, emails, and other sensitive values before they reach a log line.
Pint 1.30.0 adds a --blade flag that formats .blade.php files through Prettier, alongside fixes for --diff and --quiet.
Build nested, threaded comments in Laravel using a self-referencing parent_id column and a recursive Eloquent relationship.
Laravel Process wraps Symfony Process with a fluent API for running shell commands, plus first-class fakes for testing.
A deeper look at what an Eloquent model actually is under the hood, and why that mental model matters for the bugs you hit.
A complete walkthrough of building a URL shortener in Laravel with base-62 codes, collision handling, and click tracking.
Laravel' s HTTP client can retry failed requests with exponential backoff and custom conditions in a single fluent call.