Currently Available: Need a skilled Software Developer for your next project?
Categories
Laravel

What’s New in Laravel 13.6.0

The Laravel team released Laravel 13.6.0 on April 21, 2026 as a minor update to the PHP framework. This version lets Laravel delay queued jobs so a newer job can replace an earlier one, adds JSON responses to the built-in health route, and brings support for Cloudflare Email Service. Laravel places a queued job on a queue so a background worker can handle it outside the request that triggered it.

Developers will get the most daily value from job debouncing, and the release also fixes bugs across validation, queues, database features, and other framework components. Because Packagist lists a later Laravel 13 version released on November 17, 2026, 13.6.0 is no longer the newest release in the 13.x series.

Debounce queued jobs when newer work replaces older work

Laravel 13.6.0 adds a #[DebounceFor] attribute for queued jobs. When you add this attribute to a job, Laravel delays the queued work so it can combine repeated dispatches. For example, an application that rebuilds a document’s search index after edits can avoid running a separate rebuild for every edit when only the latest document state needs indexing.

The pull request for debounceable jobs explains that an optional identity tells Laravel which queued jobs represent the same work. A job can provide that identity with a debounceId() method:

use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\Attributes\DebounceFor;

#[DebounceFor(30)]
class RebuildSearchIndex implements ShouldQueue
{
    public function __construct(public int $documentId) {}

    public function debounceId(): string
    {
        return (string) $this->documentId;
    }

    public function handle(): void
    {
        // Rebuild the index for this document.
    }
}

When two jobs share the same identity, Laravel runs the latest one instead of all of them. By contrast, when you implement ShouldBeUnique, Laravel blocks later dispatches while an earlier job still holds its uniqueness lock. To track which job is current, Laravel stores a cache marker in your cache. If a worker cannot find that marker when the job runs, Laravel lets the job execute anyway, which means duplicate work can still happen if the cache drops or evicts the key. Test this behavior with the cache and queue drivers your application uses.

The pull request also documents a maximum-wait option that stops frequent dispatches from postponing a job forever. Check the API documentation for your exact Laravel version before relying on how that option is configured.

Health checks can return JSON

Laravel 13.6.0 adds JSON responses to the built-in health route, so monitoring tools and infrastructure can read structured data without parsing an HTML page. The framework release notes confirm this addition, though they do not document the exact response schema or configuration steps.

Before you point a monitor at the health route, test the endpoint in your installed Laravel version to see what it returns. The release notes also mention prefersJsonResponses() on the application builder, which is a separate change and does not define the health route’s payload.

Cloudflare Email Service joins Laravel’s mail support

Laravel 13.6.0 adds support for Cloudflare Email Service, giving teams that use Cloudflare another way to send mail through Laravel. The release announcement confirms the integration, though it does not include setup instructions or service-specific limits. Check the mail documentation for your Laravel version to verify the configuration and requirements before you switch a production mail connection.

Smaller fixes span queues, validation, and database features

The release notes list 37 changes in total. Beyond the three main additions, Laravel 13.6.0 includes several targeted fixes:

  • SQS queue connections now support named credential providers, and Laravel fixes how Queue::route handles string defaults.
  • The validator fixes a digits_between type error on non-string input and adjusts the decimal and digit rules.
  • Eloquent’s hasAttached method now accepts an array of pivot arrays (the data stored in a relationship’s intermediate table), and database assertions accept arrays as well.
  • Broadcasting, password, and notification managers add enum support, and Vite fixes CSS loading from nested chunk imports.

If your application relies on queues, validation, mail, encryption, or database assertions, scan the full Laravel 13.6.0 change list to see if any of these fixes affect your code.

Decide whether to upgrade to 13.6.0

If you already run Laravel 13, check whether your application needs job debouncing, JSON health responses, or Cloudflare Email Service. After updating, run your test suite across the queue, health-check, mail, and database paths you use.

Because newer Laravel 13 releases are now out, you do not need to target 13.6.0 specifically for a fresh upgrade. Check the current framework version and its upgrade guide before you pick a release.

What I'm building

Delegate tasks. Get software.

Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.

Take a look at vroni.com

Email updates

Usually a new article and a few links I found interesting.

No spam. Unsubscribe with one click.

Leave a Reply

Your email address will not be published. Required fields are marked *