Sanniv Khare 7 min read

Laravel 14 breaking changes on master: a source diff vs 13.x

Laravel 14 breaking changes on master: a source diff vs 13.x

Laravel 14 is not out yet, but its breaking changes are already merged on the master branch of laravel/framework. We diffed master (commit 9b66a23, 19 Nov 2026) against the 13.x branch (commit 1caec34, 20 Nov 2026, version 13.43.0). The takeaway: the one change that stops an app from booting is the new report(Throwable $e, array $context = [], ?string $level = null) signature: an exception handler that overrides report(Throwable $e) is a fatal error on 14. The one that fails silently is the queue pause() family, whose arguments swapped order. Search for both today; the rest are behaviour fixes you will mostly welcome.

Laravel ships a major version every year around the first quarter (the release notes list 13 on 17 March 2026), so 14 is due in early 2027. The 14.x upgrade guide is not published yet: on 21 Nov the docs master branch still carried the 12.0 guide.

Why we did this: we maintain Laravel apps that went from 10 to 13 one hop at a time, and each hop was cheaper when we knew the breaking list months ahead.

What changed, file by file

Every row below is a difference we read in the two source trees. Links go to the file on master.

Area 13.x master (Laravel 14)
PHP and Symfony php: ^8.3, Symfony ^7.4 or ^8.0 php: ^8.4, Symfony ^8.1
Cache::has() with an array get() returns the array from many(), so has([...]) is always true true only when none of the keys is null
Cache::forget() with an array no array support: the array is passed on as one key calls deleteMultiple() on every key
chunk() and lazy() add orderBy, offset and limit to the builder you called them on work on a clone; your builder is untouched (chunkById() already cloned in 13)
findOr() with an array of ids callback runs only if find() returns null, which an array never does callback runs when any id is missing
MassPrunable on a soft-deleting model prunes only rows not yet soft deleted adds withTrashed(), so soft-deleted rows are pruned too
ExceptionHandler::report() report(Throwable $e) report(Throwable $e, array $context = [], ?string $level = null); the contract also gains isReporting() and buildContextForException()
Queue pause methods pause($connection, $queue) pause($queue, $connection = null), same for pauseFor, resume, isPaused

One more detail: Application::VERSION on master still reads 13.40.0, so do not use it to tell the branches apart in a test run.

Queue pause and report signatures on 13.x and on master

The fatal one: report() overrides

PHP requires an overriding method to accept everything its parent accepts. On 14, the framework’s Handler::report() takes two extra optional parameters, so a subclass that still declares report(Throwable $e) is rejected when the class is loaded. We reproduced it with two plain classes using the same signatures:

PHP fatal error for an old report() override against the new signature

The fix is the full signature, passed through to the parent:

public function report(Throwable $e, array $context = [], ?string $level = null): void
{
    // your own reporting here
    parent::report($e, $context, $level);
}

The new parameters are optional, so this version also loads on 13.x if you keep the class in sync across the upgrade. Adding a : void return type is allowed either way, because the parent declares none.

The same applies to any class that implements ExceptionHandler directly: it must add the new report() signature and the two new methods. Since Laravel 11, most apps report exceptions through withExceptions() in bootstrap/app.php instead and have no handler class at all; those are not affected.

The silent one: queue pause arguments

On 13.x, Queue::pause('redis', 'emails') pauses the emails queue on the redis connection. On 14 the same call means queue redis on connection emails. Nothing type-checks the difference: both are strings. Rewrite every call with named arguments now, because the parameter names are the same on both branches and named arguments survive the swap:

Queue::pause(queue: 'emails', connection: 'redis');
Queue::pauseFor(queue: 'emails', ttl: 600, connection: 'redis');
Queue::resume(queue: 'emails', connection: 'redis');

On 14 the connection becomes optional and falls back to the default connection.

The behaviour fixes

  • Cache::has([...]) was always true on 13.x, which makes any existing call a bug already. On 14 it means “all keys present”.
  • chunk() and lazy() no longer leave offset, limit and an added orderBy on your builder. Code that reused the same $query after chunk(), for a count() or delete(), ran with those clauses on 13.x and runs without them on 14.
  • findOr([1, 2, 3], fn () => ...) now calls the fallback when any id is missing, instead of never.
  • MassPrunable with SoftDeletes: if your prunable() query relied on soft-deleted rows being skipped, add ->withoutTrashed() to it, or rows you meant to keep in the trash get deleted for good.

A checklist we ran on eight open-source codebases

This script counts the call sites to review. It is a search list, not a verdict: ->chunk( also matches collection chunking, and pause( matches any method of that name.

#!/usr/bin/env bash
# l14-check.sh <app dir>: call sites to review before Laravel 14.
# Searches app/, routes/, database/, config/, src/ (PHP files only).
cd "$1" || exit 1
dirs=$(ls -d app routes database config src 2>/dev/null)
c() { printf "%-34s %4s\n" "$1" "$(grep -rEn --include='*.php' -e "$2" $dirs 2>/dev/null | wc -l)"; }
c "Cache has/forget with an array"   "(Cache::|cache\(\)->)(has|forget)\(\s*\["
c "->chunk( / ->lazy( calls"         "->(chunk|chunkById|lazy|lazyById)\("
c "findOr( calls"                    "findOr\("
c "MassPrunable models"              "use MassPrunable;"
c "report(Throwable) overrides"      "function report\(\s*Throwable \\\$[a-z]+\s*\)"
c "implements ExceptionHandler"      "implements .*ExceptionHandler"
c "Queue pause/resume calls"         "(Queue::|->)(pause|pauseFor|resume|isPaused)\("

We ran it on the current default branches (as of 21 Nov 2026) of the laravel/laravel skeleton, Koel, Firefly III, Monica, Pixelfed, Horizon, Telescope and Pulse, then read every hit:

Codebase Hits After reading each hit
laravel/laravel (a255d76) 0 nothing to change
Koel (7bf5977) 30 chunk/lazy, 1 findOr, 1 MassPrunable findOr takes a single id; the pruned Audit model has no SoftDeletes; the one builder reused after chunking uses chunkById(), which already cloned
Firefly III (e1a90bf) 1 report() override report(Throwable $e): void in its handler: the fatal case above
Monica (dab7427) 8 chunk/lazy none reuse the builder
Pixelfed (0f5e5c1) 83 chunk/lazy the reuse candidate is a collection, not a query
Horizon (b86d5aa) 4 pause calls Horizon’s own supervisor pause(), not the queue manager
Telescope (39a8ea8) 2 chunk collection chunking
Pulse (33cc6fc) 15 chunk/lazy, 1 report() Pulse::report() is its own API, not a handler

So across eight active codebases the list came down to one line that will stop an app from booting. None of them is expected to run on master today; these are the changes their 14.x upgrades will include.

What to do now, on 13.x

  1. Run the script on your app and read each hit.
  2. Change any report() override to the full signature. It is backward compatible.
  3. Rewrite queue pause calls with named arguments. Also backward compatible.
  4. Add ->withoutTrashed() to prunable() on soft-deleting models where it matters.
  5. Plan for PHP 8.4 and Symfony 8.1 on the servers that will run 14.

All five can ship on 13.x before 14 is released, which keeps the major upgrade itself small.

Made by the team behind this post

Apps from our studio

  • Nix

    The Mac uninstaller that finds what the Trash leaves behind: caches, logs, derived data and saved states.

    macOS

    Get
  • Cardigami

    Pop-up greeting cards that rise out of the fold on iPhone Duo.

    iPhone · App Store

    Get
  • BMDB.fun

    Your Bollywood world at a glance, with links straight to the OTT app that streams each film.

    Android TV · Web · Mobile

    Get
  • OneClick QuitAll

    Quit every running app in one click. See memory and CPU first.

    macOS · Mac App Store

    Get

Need this built? Let’s talk.

We build and run apps for Mac, TV, mobile and the web, and write about what we learn.