Skip to content

fix: allow Debugbar to load with strict form request validation enabled#2032

Merged
barryvdh merged 1 commit into
fruitcake:masterfrom
fadez:master
Apr 20, 2026
Merged

fix: allow Debugbar to load with strict form request validation enabled#2032
barryvdh merged 1 commit into
fruitcake:masterfrom
fadez:master

Conversation

@fadez
Copy link
Copy Markdown
Contributor

@fadez fadez commented Apr 20, 2026

Laravel v13.4.0 introduced a new feature: strict mode for form request validation.

When enabled globally, this causes Debugbar assets to not load because the hash and mtime parameters are missing from the form request validation.

As a result, these requests will return a 302 status response:

You can verify this by adding the following to app/Providers/AppServiceProvider.php:

use Illuminate\Foundation\Http\FormRequest;

public function boot(): void
{
    FormRequest::failOnUnknownFields();
}

This PR fixes the issue by adding hash and mtime as optional parameters to the AssetRequest validation rules.

@fadez fadez force-pushed the master branch 3 times, most recently from 8e0a955 to 7c875e0 Compare April 20, 2026 13:24
@barryvdh barryvdh merged commit 799d70c into fruitcake:master Apr 20, 2026
25 checks passed
@barryvdh
Copy link
Copy Markdown
Member

Thanks!

@barryvdh
Copy link
Copy Markdown
Member

Not sure why they are named differently though :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants