chunk() can silently skip or duplicate rows when you update data mid-loop. Here is when to reach for chunkById() instead.
Latest News
More Articles
A step-by-step guide to building a reusable tagging system that works across multiple Eloquent models using morphToMany.
Laravel ships a Number helper that formats currency, percentages, and file sizes in one line, no extra formatting package required.
Taylor Otwell announced Laravel LSP at Laracon US 2026 - Laravel-aware completions, hovers, and diagnostics for any editor that speaks the Language Server Protocol.
Stop writing commands that fail with a cryptic error when a required argument is missing. Laravel Prompts asks for it instead.
Automatically flag user-submitted comments for review before they go live, using a queued job and a structured AI classification call.
Skip the third-party status page subscription. A scheduled command, a small model, and one public route cover most small teams needs.
A single Http::fake() response tests the happy path. Sequences let you test what your retry logic actually does when an API fails first.
A reusable Blade component that gets rendered 12 times on a page should not inject its <script> tag 12 times. Here is the directive that fixes it.