What's New in Laravel 13.43: JSON Schema &amp; RetryFor | Mohamed Said       [Skip to content](#main)  [ ![](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png) Mohamed SaidLaravel Backend Engineer ](https://www.msaied.com) - [Home](https://www.msaied.com)
- [Projects](https://www.msaied.com/projects)
- [Articles](https://www.msaied.com/articles)
- [Certificates](https://www.msaied.com/certificates)
- [About](https://www.msaied.com#about)

           [  Contact](https://www.msaied.com#contact) Menu 

Menu
----

Close 

 - [HomeStart here](https://www.msaied.com)
- [ProjectsCase studies](https://www.msaied.com/projects)
- [ArticlesEngineering notes](https://www.msaied.com/articles)
- [CertificatesCredentials](https://www.msaied.com/certificates)
- [AboutHow I work](https://www.msaied.com#about)
- [ContactGet in touch](https://www.msaied.com#contact)

  [Start a conversation](https://www.msaied.com#contact) [WhatsApp](https://wa.me/201094619204) [Email](mailto:hello@msaied.com) 

 1. [Home](https://www.msaied.com)
2. /
3. [Articles](https://www.msaied.com/articles)
4. /
5. [Laravel](https://www.msaied.com/articles?category=laravel)
6. /
7. JSON Schema Validation Rules and a RetryFor Attribute in Laravel 13.43

   [Laravel](https://www.msaied.com/articles?category=laravel) 

 JSON Schema Validation Rules and a RetryFor Attribute in Laravel 13.43
=======================================================================

 Laravel 13.43 ships JsonSchema::rules() to derive validation rules from a JSON schema, a #\[RetryFor\] queue attribute, releaseUsingBackoff(), RawTemplate for inline Blade components, and several security fixes.

 ![](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp) [Mohamed Said](https://www.msaied.com#person) Published 17 Nov 2026 · Updated 19 Nov 2026 · 3 min read

ShareCopy linkCopied

 ![JSON Schema Validation Rules and a RetryFor Attribute in Laravel 13.43](https://cdn.msaied.com/829/1060437ce4d112be31b4254b41a2019c.png) 

  On this page +1. [Laravel 13.43: What's New](#laravel-1343-whats-new)
2. [Derive Validation Rules From a JSON Schema](#derive-validation-rules-from-a-json-schema)
3. [The #\[RetryFor\] Queue Attribute](#the-retryfor-queue-attribute)
4. [Release a Job Using Its Backoff](#release-a-job-using-its-backoff)
5. [RawTemplate for Inline Blade Components](#rawtemplate-for-inline-blade-components)
6. [Other Notable Changes](#other-notable-changes)
7. [Key Takeaways](#key-takeaways)

 Laravel 13.43: What's New
-------------------------

The Laravel team released **v13.43.0** on November 17, 2026, packed with developer-quality-of-life improvements and a notable batch of security fixes. Here is a detailed look at every significant change.

---

Derive Validation Rules From a JSON Schema
------------------------------------------

The headline feature is `JsonSchema::rules()`, contributed by [Pushpak Chhajed](https://github.com/pushpak1300). Tools in the Laravel AI SDK and Laravel MCP already describe their inputs with a JSON schema. Previously you had to duplicate those constraints as separate validation rules. Now you can convert the schema directly:

```php
use Illuminate\JsonSchema\JsonSchema;

$schema = JsonSchema::object(fn ($schema) => [
    'name' => $schema->string()->max(50)->required(),
    'age'  => $schema->integer()->min(18),
    'role' => $schema->string()->enum(['admin', 'user'])->required(),
]);

JsonSchema::rules($schema);
// [
//   'name' => ['required', 'string', 'max:50'],
//   'age'  => ['sometimes', RejectEmptyString, 'integer', 'min:18'],
//   'role' => ['required', 'string', Rule::in(['admin', 'user'])],
// ]

```

The method also accepts a raw schema array. Nested properties map to dot-notation keys such as `address.city` and `tags.*`, and the result works anywhere Laravel accepts rules — `Validator::make()`, form requests, and so on. A follow-up PR added support for `exclusiveMinimum` and `exclusiveMaximum`.

---

The #\[RetryFor\] Queue Attribute
---------------------------------

Contributed by [Francisco Madeira](https://github.com/xiCO2k), the `#[RetryFor]` PHP attribute lets you set a job's retry window without writing a `retryUntil()` method:

```php
use Illuminate\Queue\Attributes\RetryFor;

// Before
class ImportProducts implements ShouldQueue
{
    public function retryUntil(): DateTime
    {
        return now()->addHours(4);
    }
}

// After
#[RetryFor(hours: 4)]
class ImportProducts implements ShouldQueue {}

```

The first positional argument is seconds; named arguments `minutes` and `hours` are also supported — e.g. `#[RetryFor(hours: 1, minutes: 30)]`. The attribute works on jobs, queued mailables, queued notifications, and queued listeners. Child classes inherit it, and an explicit `retryUntil()` method or `$retryUntil` property still takes precedence.

---

Release a Job Using Its Backoff
-------------------------------

Also from Francisco Madeira, `releaseUsingBackoff()` is now available on the `InteractsWithQueue` trait. The queue worker only applies a job's backoff schedule when the job throws an exception. A job that releases itself — for example, one polling an external API — previously had to calculate the delay manually:

```php
#[Backoff(5, 15, 60, 300)]
class WaitForExport implements ShouldQueue
{
    use InteractsWithQueue;

    public function handle(): void
    {
        if (! $this->export->isReady()) {
            return $this->releaseUsingBackoff();
        }
        $this->export->download();
    }
}

```

The delay used is the backoff value for the current attempt. Once attempts exceed the list length, the last value is reused. A job with no backoff is released with no delay.

---

RawTemplate for Inline Blade Components
---------------------------------------

[@JurianArie](https://github.com/JurianArie) added a `RawTemplate` class for inline components. When a component's `render()` returns a plain string, Blade compiles it as a template — meaning any Blade syntax in user-supplied data runs on the server. `RawTemplate` makes the intent explicit and safe:

```php
use Illuminate\View\RawTemplate;

public function render(): RawTemplate
{
    return new RawTemplate(
